Hi Jakub, ----- Original Message ----- > [...] > I'd suggest using stat(1) to check the file type and ownership > atomically, and without following symlinks. Something like this should > work: > > [ "$(LC_ALL=C stat -c '%u %g %F' $dir)" = "0 0 directory" ] && mv $dir > /var/lib/pcp/tmp
Yep, looks good - will get this included in the next update, thanks. cheers. -- Nathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org