tag 489553 patch
tag 489553 pending
thanks

I attach a trivial patch to fix this bug. I've also prepared an NMU. Let
me know if you want to handle this upload, otherwise I'll upload to
delayed in a few days.

Matt

--
Matthew Johnson
--- copyfs-1.0.1/copyfs-mount.orig	2008-08-23 12:06:31.000000000 +0000
+++ copyfs-1.0.1/copyfs-mount	2008-08-23 12:07:18.000000000 +0000
@@ -24,7 +24,7 @@
 
 # Check fuse module
 if ! grep fuse /proc/modules > /dev/null; then
-    if [ $UID = 0 ]; then
+    if [ "$(id -ru)" = "0" ]; then
 	modprobe fuse > /dev/null || {
 	    echo "Could not load fuse kernel module !" 1>&2
 	    exit 1
@@ -38,7 +38,7 @@
     fi
 fi
 
-if [ $UID = 0 ]; then
+if [ "$(id -ru)" = "0" ]; then
     # Allow other users and check permissions if run by root
     FILESYSTEM_PARAMETERS="${FILESYSTEM_PARAMETERS} -o default_permissions,allow_other"
 fi

Attachment: signature.asc
Description: Digital signature

Reply via email to