Re: Username length inconsistencies.
Alex Yukhimets <email@example.com> 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 firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com