Subject: Re: magic symlinks: uid keyword translation
To: Quentin Garnier <cube@cubidou.net>
From: Stephen Borrill <netbsd@precedence.co.uk>
List: tech-kern
Date: 10/30/2006 15:34:48
On Mon, 30 Oct 2006, Quentin Garnier wrote:
> On Mon, Oct 30, 2006 at 02:50:14PM +0200, Elad Efrat wrote:
>> hi,
>>
>> attached diff adds a "uid" keyword translation for magic symlinks.
>>
>> any objections?
[snip]
>> +			char uidtmp[16];
>> +
>> +			(void)snprintf(uidtmp, sizeof(uidtmp) - 1, "%u",
>> +			    kauth_cred_getuid(p->p_cred));
>
> s/16/LOGIN_NAME_MAX/

It's numeric UID not user name, so 16 will be fine.

-- 
Stephen