[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Username length inconsistencies.



<aqy6633@acf5.nyu.edu>(Alex Yukhimets) writes:

> 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) {
      ...
    }
  }

-- 
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94  53 2B 97 F5 D6 4E 39 30


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: