diff options
Diffstat (limited to 'src/cmd/vac')
-rw-r--r-- | src/cmd/vac/vac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index f2595fff..93add14d 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -400,6 +400,8 @@ vacfile(DirSink *dsink, char *lname, char *sname, VacFile *vf) if((dir = dirstat(sname)) == nil){ warn("could not stat file %s: %r", lname); + return; + } if(dir->mode&(DMSYMLINK|DMDEVICE|DMNAMEDPIPE|DMSOCKET)){ free(dir); return; |