Subject: Re: magic symlinks: uid keyword translation
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 10/30/2006 16:02:49
In article <Pine.NEB.email@example.com>,
Stephen Borrill <firstname.lastname@example.org> wrote:
>On Mon, 30 Oct 2006, 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?
>>> + char uidtmp;
>>> + (void)snprintf(uidtmp, sizeof(uidtmp) - 1, "%u",
>>> + kauth_cred_getuid(p->p_cred));
>It's numeric UID not user name, so 16 will be fine.
I think that we should have a constant that specifies what is the string
length required for each numeric type. This way programs don't need to
roll their own.