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

Nadav Kavalerchik nadavkav at gmail.com
Wed Mar 7 10:04:01 UTC 2007


thanks :-)

(my mistake, oups :-( )


On 3/6/07, Petre Scheie <petre at maltzen.net> wrote:
>
> 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
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20070307/f30999e6/attachment.htm>


More information about the K12OSN mailing list