Re: Username length inconsistencies.
Alex Yukhimets <firstname.lastname@example.org> wrote:
> Again, the above solution is OK for debhelper (as well as "id -u" one),
> but assuming that perl is present on the system is still non-portable.
> Most (if not all) commercial unices got shipped without perl...
If you want that kind of portability, you don't want to be checking for
root anyways. Nowadays there's this concept of "capabilities" which means
that uid 0 can be an unpriviledged account.
The most portable thing is to simply check your results, and issue an error
report if something seems wrong.
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org