package libgcr410
tags 389375 patch
thanks

The bug's symptom is caused because [ -e ... ] fails not only if the
file does not exist, but also if the files is a symlink to a file that
does not exist. This test is done when setting up symlinks to device
nodes in non-udev systems.

The following patch fixes that:
______________________________________________________________________
--- debian/libgcr410.postinst.orig     2006-10-13 20:24:46.964367618 -0500
+++ debian/libgcr410.postinst  2006-10-13 20:25:16.128458361 -0500
@@ -62,7 +62,7 @@
                                echo "done"
                        fi

-                       if [ ! -e /dev/pcsc/1 ] ; then
+                       if [ ! -e /dev/pcsc/1 -a ! -L /dev/pcsc/1 ] ; then
                                echo -n "Populating /dev/pcsc/..."
                                ln -s ../ttyS0 /dev/pcsc/1
                                ln -s ../ttyS1 /dev/pcsc/2
______________________________________________________________________

However, this leaves open the question of why doesn't /dev/ttyS0 exist
in a system without udev, and what to do in that case.

-- 
Rodrigo Gallardo
GPG-Fingerprint: 7C81 E60C 442E 8FBC D975  2F49 0199 8318 ADC9 BC28

Attachment: signature.asc
Description: Digital signature

Reply via email to