diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 903ce7ba467..4a9825b03a6 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;