To make inherit file flags when mv(1) moves file between directories
on different file systems. PR: bin/12375 Submitted by: Takashi SHIRAI <shirai@nintendo.co.jp> No response by: steve No problem with: building 5-current world
This commit is contained in:
parent
e7b7b6e4c4
commit
3c2ddcf514
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63225
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user