Subject: Re: sysv ps(1) implementation [was: ps(1) sysv silliness]
To: Greywolf <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 06/09/2000 14:52:10
>[mkdir/mknod not; i remember now it was that mkdir had to be setuid
> because the _rename_ call hadn't been implemented yet, that was it!
> so mkdir was, more or less (modulo GC and error checking)
> char *cp;
> link(path, cp = strspl(path, "/."));
> link(getcwd(), cp = strspl(path, "/.."));
i'm sure someone will correct if i'm wrong, but wasn't it more like
system("mkdir path"); /* with some sprintf() magic */
because mkdir (the program) actually did
mknod(path, 0777, however_you_describe_a_directory);
link(path, cp = strspl(path, "/."));
link(getcwd(), cp = strspl(path, "/.."));
since mknod was used to make directories and was limited to use by
ps - what's strspl()?
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."