sane-backends/sane-desc_closedir.patch
OBS User autobuild 2ed97ec3e6 Accepting request 17700 from graphics
Copy from graphics/sane-backends based on submit request 17700 from user jsmeix

OBS-URL: https://build.opensuse.org/request/show/17700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sane-backends?expand=0&rev=33
2009-08-13 16:19:40 +00:00

16 lines
442 B
Diff

--- tools/sane-desc.c.orig 2009-04-15 03:47:56.000000000 +0200
+++ tools/sane-desc.c 2009-08-13 13:12:13.000000000 +0200
@@ -1523,6 +1523,12 @@ read_files (void)
fclose (fp);
} /* if (strlen) */
} /* while (direntry) */
+ if (closedir(dir) != 0)
+ {
+ DBG_ERR ("cannot close directory `%s' (%s)\n", search_dir,
+ strerror (errno));
+ return SANE_FALSE;
+ }
if (end)
search_dir = end + 1;
else