have to set type of single name ls commands
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 6 Oct 1992 16:56:32 +0000 (08:56 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 6 Oct 1992 16:56:32 +0000 (08:56 -0800)
SCCS-vsn: sbin/restore/interactive.c 5.16

usr/src/sbin/restore/interactive.c

index 80a5155..70cdfa7 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)interactive.c      5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)interactive.c      5.16 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "restore.h"
 #endif /* not lint */
 
 #include "restore.h"
@@ -658,6 +658,7 @@ printlist(name, ino, basename)
 
        if ((dirp = rst_opendir(name)) == NULL) {
                single.fnum = ino;
 
        if ((dirp = rst_opendir(name)) == NULL) {
                single.fnum = ino;
+               single.finotype = DT_UNKNOWN;
                single.fname = savename(name + strlen(basename) + 1);
                alist.head = &single;
                alist.last = alist.head + 1;
                single.fname = savename(name + strlen(basename) + 1);
                alist.head = &single;
                alist.last = alist.head + 1;