slackbuilds_ponce/libraries/libgphoto2/check-ptp-camera.diff
2010-05-11 22:23:59 +02:00

14 lines
702 B
Diff

diff -Nur libgphoto2-2.4.3.orig/packaging/generic/check-ptp-camera libgphoto2-2.4.3/packaging/generic/check-ptp-camera
--- libgphoto2-2.4.3.orig/packaging/generic/check-ptp-camera 2007-07-27 00:52:50.000000000 -0500
+++ libgphoto2-2.4.3/packaging/generic/check-ptp-camera 2008-10-21 12:43:06.121742696 -0500
@@ -3,8 +3,8 @@
# check if any interface of this device is a PTP camera interface (06)
INTERFACE="${1:-06/01/01}"
-BASENAME=${PHYSDEVPATH##*/}
-for d in /sys/${PHYSDEVPATH}/${BASENAME}:*; do
+BASENAME=${DEVPATH##*/}
+for d in /sys/${DEVPATH}/${BASENAME}:*; do
[[ -d ${d} ]] || continue
INTERFACEID="$(< ${d}/bInterfaceClass)"
INTERFACEID="${INTERFACEID}/$(< ${d}/bInterfaceSubClass)"