diff options
Diffstat (limited to 'bin/mv')
-rw-r--r-- | bin/mv/mv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 903ce7b..4a9825b 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -290,6 +290,8 @@ err: if (unlink(to)) } if (fchmod(to_fd, sbp->st_mode)) warn("%s: set mode (was: 0%03o)", to, oldmode); + if (fchflags(to_fd, sbp->st_flags)) + warn("%s: set flags (was: 0%07o)", to, sbp->st_flags); tval[0].tv_sec = sbp->st_atime; tval[1].tv_sec = sbp->st_mtime; |