Re: Username length inconsistencies.
> > Well, this way is probably OK for dh_testroot, but "id -u" is absolutely
> > non-portable thing across different UNIX platforms... :(
>
> How about
> #include <unistd.h>
> {
> uid_t uid = getuid();
> if(uid == 0) {
> ...
Sure, this would work, but I was talking about _shell_script_ way of doing
that...
Thanks.
Alex Y.
--
_
_( )_
( (o___ +-------------------------------------------+
| _ 7 | Alexander Yukhimets |
\ (") | http://pages.nyu.edu/~aqy6633/ |
/ \ \ +-------------------------------------------+
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: