plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 2cb7bf889fdadeeea1bc4683baee6a08de3fa87c
parent 357cecc163c31e95a40a2ce14a23840eef066fe6
Author: rsc <devnull@localhost>
Date:   Thu, 18 Jan 2007 18:24:29 +0000

Decode uid/gid strings as numbers if possible.  (Michael Kaminsky)

Diffstat:
Msrc/cmd/vac/vacfs.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/vac/vacfs.c b/src/cmd/vac/vacfs.c @@ -682,6 +682,8 @@ vdStat(VacFile *parent, VacDir *vd, uchar *p, int np) dir.gid = vd->gid; dir.muid = vd->mid; dir.ext = ext; + dir.uidnum = atoi(vd->uid); + dir.gidnum = atoi(vd->gid); ret = convD2Mu(&dir, p, np, dotu); free(ext);