aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-01-18 18:24:29 +0000
committerrsc <devnull@localhost>2007-01-18 18:24:29 +0000
commit2cb7bf889fdadeeea1bc4683baee6a08de3fa87c (patch)
tree7a959b6a22b920609ae5d6eb9e140a2a41a1d90c /src/cmd/vac
parent357cecc163c31e95a40a2ce14a23840eef066fe6 (diff)
downloadplan9port-2cb7bf889fdadeeea1bc4683baee6a08de3fa87c.tar.gz
plan9port-2cb7bf889fdadeeea1bc4683baee6a08de3fa87c.tar.bz2
plan9port-2cb7bf889fdadeeea1bc4683baee6a08de3fa87c.zip
Decode uid/gid strings as numbers if possible. (Michael Kaminsky)
Diffstat (limited to 'src/cmd/vac')
-rw-r--r--src/cmd/vac/vacfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/vac/vacfs.c b/src/cmd/vac/vacfs.c
index 24758459..9557667a 100644
--- 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);