From 2acd6fa6ff4948a90a2a7338afd9a96f94637f33 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 8 Feb 2005 20:17:02 +0000 Subject: expose unix mode bits --- src/lib9/dirfstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib9/dirfstat.c') diff --git a/src/lib9/dirfstat.c b/src/lib9/dirfstat.c index 68427916..d1922bf9 100644 --- a/src/lib9/dirfstat.c +++ b/src/lib9/dirfstat.c @@ -4,7 +4,7 @@ #include -extern int _p9dir(struct stat*, char*, Dir*, char**, char*); +extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*); Dir* dirfstat(int fd) @@ -18,7 +18,7 @@ dirfstat(int fd) return nil; snprint(tmp, sizeof tmp, "/dev/fd/%d", fd); - nstr = _p9dir(&st, tmp, nil, nil, nil); + nstr = _p9dir(&st, &st, tmp, nil, nil, nil); d = mallocz(sizeof(Dir)+nstr, 1); if(d == nil) return nil; -- cgit v1.2.3