new fts routine names
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 15 Nov 1990 09:57:42 +0000 (01:57 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 15 Nov 1990 09:57:42 +0000 (01:57 -0800)
SCCS-vsn: bin/chmod/chmod.c 5.16

usr/src/bin/chmod/chmod.c

index 532e830..224414c 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)chmod.c    5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)chmod.c    5.16 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -76,12 +76,12 @@ done:       argv += optind;
 
        retval = 0;
        if (rflag) {
 
        retval = 0;
        if (rflag) {
-               if (!(fts = ftsopen(++argv,
+               if (!(fts = fts_open(++argv,
                    oct ? FTS_NOSTAT|FTS_PHYSICAL : FTS_PHYSICAL, 0))) {
                        (void)fprintf(stderr, "chmod: %s.\n", strerror(errno));
                        exit(1);
                }
                    oct ? FTS_NOSTAT|FTS_PHYSICAL : FTS_PHYSICAL, 0))) {
                        (void)fprintf(stderr, "chmod: %s.\n", strerror(errno));
                        exit(1);
                }
-               while (p = ftsread(fts)) {
+               while (p = fts_read(fts)) {
                        if (p->fts_info == FTS_D)
                                continue;
                        if (p->fts_info == FTS_ERR) {
                        if (p->fts_info == FTS_D)
                                continue;
                        if (p->fts_info == FTS_ERR) {