On Mon, Mar 21, 2011 at 01:08:44AM +0100, c...@wzff.de wrote:
> Please don't use [ $USER = root ]. This is very unclean because the UID-0 user
> isn't always called root. Use id -u instead and spread the word. I hate it 
> when
> things break because of this.
> 

Seeing that the rest of the script is tailored to be used in a Linux
environment (and one very specific at that), I don't see the point in
using UID 0 instead of the symbolic name. Also, besides BeOS/Haiku, I
don't really remember an OS with a similar scheme of UID/GID and the
user with ID 0 not being root. Could you give an example of where it
craps up?

-- 
    $l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while(
    $i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s*
    4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@

Attachment: pgp1YobzYvVK0.pgp
Description: PGP signature

Reply via email to