diff options
-rw-r--r-- | bin/chmod/chmod.c | 2 | ||||
-rw-r--r-- | usr.sbin/chown/chown.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c index 97c9c02..83a31c7d 100644 --- a/bin/chmod/chmod.c +++ b/bin/chmod/chmod.c @@ -148,7 +148,7 @@ done: argv += optind; fts_options |= FTS_LOGICAL; } } else - fts_options = FTS_LOGICAL; + fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL; if (hflag) change_mode = lchmod; diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c index b86af0e..87eb8c2 100644 --- a/usr.sbin/chown/chown.c +++ b/usr.sbin/chown/chown.c @@ -133,7 +133,7 @@ main(argc, argv) fts_options |= FTS_LOGICAL; } } else - fts_options = FTS_LOGICAL; + fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL; uid = gid = -1; if (ischown) { |