Subject: Re: magic symlinks: uid keyword translation
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 10/30/2006 16:02:49
In article <Pine.NEB.firstname.lastname@example.org>,
Stephen Borrill <email@example.com> 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.