]> git.wh0rd.org - dump.git/blobdiff - restore/dirs.c
Added version in usage text.
[dump.git] / restore / dirs.c
index 30cec66e4a88a0df239ac1eb2ad38b0fd3a22591..abc618148d54fda14cd5795dd949c9df82b69cf7 100644 (file)
@@ -2,8 +2,7 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *      Stelian Pop <pop@cybercable.fr>, 1999 
- *
+ *     Stelian Pop <pop@cybercable.fr>, 1999 
  */
 
 /*
  */
 
 #ifndef lint
-#if 0
-static char sccsid[] = "@(#)dirs.c     8.7 (Berkeley) 5/1/95";
-#endif
 static const char rcsid[] =
-       "$Id: dirs.c,v 1.3 1999/10/11 12:59:19 stelian Exp $";
+       "$Id: dirs.c,v 1.6 1999/10/13 09:57:20 stelian Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -658,10 +654,11 @@ setdirmodes(int flags)
                        cp = myname(ep);
                        (void) chown(cp, node.uid, node.gid);
                        (void) chmod(cp, node.mode);
+                       if (node.flags)
 #ifdef __linux__
-                       (void) setflags(cp, node.flags);
+                               (void) fsetflags(cp, node.flags);
 #else
-                       (void) chflags(cp, node.flags);
+                               (void) chflags(cp, node.flags);
 #endif
                        utimes(cp, node.timep);
                        ep->e_flags &= ~NEW;