X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Fdirs.c;h=bf1583be85fc9c4e79e8e54fe96217c3beb71496;hp=4a0a2bcfdbb4618bd495189717666f3ce6ad74c0;hb=ed7c25a371480f96746518a4c4d4bb932ae16b77;hpb=aa1b1e7f1a9c7201ba1ac4eb35921e2c9df26729 diff --git a/restore/dirs.c b/restore/dirs.c index 4a0a2bc..bf1583b 100644 --- a/restore/dirs.c +++ b/restore/dirs.c @@ -46,7 +46,7 @@ #ifndef lint static const char rcsid[] = - "$Id: dirs.c,v 1.19 2002/06/08 07:10:37 stelian Exp $"; + "$Id: dirs.c,v 1.20 2002/06/25 19:00:38 stelian Exp $"; #endif /* not lint */ #include @@ -397,6 +397,8 @@ putdir(char *buf, size_t size) if (!Bcvt) dp->d_namlen = dp->d_type; # endif + if (dp->d_namlen == 0 && dp->d_type != 0) + dp->d_namlen = dp->d_type; dp->d_type = DT_UNKNOWN; } #ifdef DIRDEBUG