SCCS-vsn: bin/chmod/chmod.c 5.16
#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>
- 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) {