Subject: Re: magic symlinks: uid keyword translation
To: Dr R.S. Brooks <R.S.Brooks@liverpool.ac.uk>
From: Quentin Garnier <firstname.lastname@example.org>
Date: 10/30/2006 16:29:31
Content-Type: text/plain; charset=us-ascii
On Mon, Oct 30, 2006 at 03:24:10PM +0000, Dr R.S. Brooks wrote:
> On Mon, 30 Oct 2006, Quentin Garnier wrote:
> >On Mon, Oct 30, 2006 at 04:57:51PM +0200, Elad Efrat wrote:
> >>Quentin Garnier wrote:
> >>>On Mon, Oct 30, 2006 at 02:50:14PM +0200, Elad Efrat wrote:
> >>>>attached diff adds a "uid" keyword translation for magic symlinks.
> >>>>any objections?
> >1. raw numbers like this are wrong.
> >2. the best example of 1. is that LOGIN_NAME_MAX is 17.
> >3. someone might wish to run a system with a different LOGIN_NAME_MAX,
> > for whatever reason (although it's not recommended, and not made
> > easy either).
> But unless I'm mistaken, the code below will substitute the numeric UID
> (as a string of ASCII digits). And trying to do a numeric UID to login
Hum, right. I was mislead by the "16", which in that case is a bit
much (UID_MAX is 10 digit long).
1. still holds, then.
Quentin Garnier - email@example.com - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)
-----END PGP SIGNATURE-----