[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[K12OSN] bug in remove-icons-from-users-desktops script in K12 ver. 6



It appears there is a bug in the /usr/sbin/remove-icons-from-users-desktops script in K12LTSP version 6. After the line

DEST="`basename \"$FILE\"`"

the rm commands should point to $DEST, which is the filename with the path stripped away. However, the rm commands still reference $FILE, which is something like /root/Desktop/Icon.desktop, where Icon is the name you gave to the icon. But since $FILE still contains the full path, in this case relative to root's home directory, the rm commands won't work because they'll try to delete /root/Desktop/Icon.desktop from each users ~/Desktop directory. Changing the rm commands to use $DEST instead of $FILE fixes this.

Petre


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]