add closedir call to fix bug #311880, patch from Johannes Meixner

merge-requests/1/head
m. allan noah 2009-08-13 14:15:57 -04:00
rodzic 161ca93aa5
commit 645bde0b8b
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,9 @@
2009-08-13 m. allan noah <kitno455 at gmail dot com>
* tools/sane-desc.c: add closedir call to fix bug #311880, patch
from Johannes Meixner
2009-08-08 Julien Blache <jb@jblache.org>
- frontend/saned.c: run_standalone(), explicitely check for errors
* frontend/saned.c: run_standalone(), explicitely check for errors
on fds.
2009-08-07 m. allan noah <kitno455 at gmail dot com>

Wyświetl plik

@ -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