diff options
Diffstat (limited to 'usr.bin/fstat/fstat.c')
-rw-r--r-- | usr.bin/fstat/fstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index bc6467a1..0907c49d 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -348,7 +348,8 @@ dofiles(struct kinfo_proc *kp) /* * current working directory vnode */ - vtrans(filed.fd_cdir, CDIR, FREAD); + if (filed.fd_cdir) + vtrans(filed.fd_cdir, CDIR, FREAD); /* * jail root, if any. */ |