doing a chflags on a directory causing a cycle is probably the
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 1 Apr 1994 08:26:51 +0000 (00:26 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 1 Apr 1994 08:26:51 +0000 (00:26 -0800)
right thing to do

SCCS-vsn: usr.bin/chflags/chflags.c 8.4

usr/src/usr.bin/chflags/chflags.c

index 0a94ae3..49ece40 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)chflags.c  8.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)chflags.c  8.4 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -108,8 +108,6 @@ main(argc, argv)
                                continue;
                        fts_set(ftsp, p, FTS_SKIP);
                        break;
                                continue;
                        fts_set(ftsp, p, FTS_SKIP);
                        break;
-               case FTS_DC:                    /* Ignore. */
-                       continue;
                case FTS_DNR:                   /* Warn, chflag, continue. */
                        errno = p->fts_errno;
                        warn("%s", p->fts_path);
                case FTS_DNR:                   /* Warn, chflag, continue. */
                        errno = p->fts_errno;
                        warn("%s", p->fts_path);