I'd say this is not nice, but mostly harmless. This is what happens: 62 flist="/etc/pm/sleep.d/*[^~] /usr/lib/pm-utils/sleep.d/*[^~]" 63 bases=$(for file in $flist ; do echo $(basename $file) ; done | sort -n)
If those sleep.d directories is empty (In my Fedora, /etc/pm/sleep.d is), the shell glob doesn't expand and basename returns '*[^~]', which in turn expands to all files in ~ But fortunately they are not executed, as in the following lines they are matched against the directories they should exist in. If they don't they're lust ignored, therefor nothing that shouldn't be executed gets executed: 65 for base in $bases ; do 66 if [ -e "/etc/pm/sleep.d/$base" ]; then 67 if [ -x "/etc/pm/sleep.d/$base" ]; then 68 echo /etc/pm/sleep.d/$base 69 fi 70 elif [ -x "/usr/lib/pm-utils/sleep.d/$base" ]; then 71 echo /usr/lib/pm-utils/sleep.d/$base 72 fi 73 done Thanks, -- Lubomir Kundrak (Red Hat Security Response Team) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]