summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 4e326ec..fa95e69 100644
--- a/parse.c
+++ b/parse.c
@@ -1896,8 +1896,10 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct
}
break;
case 't':
- file_change |= S_ISVTX;
- dir_change |= S_ISVTX;
+ if (who & 0007) {
+ file_change |= S_ISVTX;
+ dir_change |= S_ISVTX;
+ }
break;
default:
mstate = MODE_ACTION_APPLY;