1
Description: Allow symlinks under /etc/sane.d/dll.d
2
Symlinks were not allowed due to the use of lstat(), switch to using stat()
4
Author: Julien BLACHE <jblache@debian.org>
6
Index: sane-backends-1.0.21/backend/dll.c
7
===================================================================
8
--- sane-backends-1.0.21.orig/backend/dll.c 2010-07-09 18:17:45.464558452 +0200
9
+++ sane-backends-1.0.21/backend/dll.c 2010-07-09 18:18:27.567557502 +0200
11
DBG (5, "sane_init/read_dlld: processing %s ...\n",
12
STRINGIFY(PATH_SANE_CONFIG_DIR) "/dll.d");
14
- /* Debian specific: read files under $sysconfdir/sane.d/dll.d */
15
+ /* Read files under $sysconfdir/sane.d/dll.d */
16
dlld = opendir (STRINGIFY(PATH_SANE_CONFIG_DIR) "/dll.d");
21
DBG (5, "sane_init/read_dlld: considering %s\n", conffile);
23
- if (lstat (conffile, &st) != 0)
24
+ if (stat (conffile, &st) != 0)
27
if (!S_ISREG (st.st_mode))