Re: Username length inconsistencies.

1998-06-19 Thread Noel Maddy
On Sun, May 31, 1998 at 11:32:18PM -0400, Alex Yukhimets wrote: Wow, I think I'm going to open a zoo for root-checking methods:) Okay, how about this: cat /usr/local/bin/getuid #!/bin/sh USERNAME=`whoami` IFS=: set `grep ^$USERNAME /etc/passwd` echo $3 -- Deep in the fundamental heart

Re: Username length inconsistencies.

1998-06-07 Thread Joey Hess
Alex Yukhimets wrote: Well, this way is probably OK for dh_testroot, but id -u is absolutely non-portable thing across different UNIX platforms... :( Good enough for dh_testroot, I think this is in debhelper 0.90. -- see shy jo I'm on a long trip, pardon any delays in my reply. -- To