version 1.60, 2015/07/18 14:32:36 |
version 1.61, 2015/07/18 15:42:37 |
|
|
fchown(to_fd, uid, gid)) { |
fchown(to_fd, uid, gid)) { |
serrno = errno; |
serrno = errno; |
(void)unlink(safecopy ? tempfile : to_name); |
(void)unlink(safecopy ? tempfile : to_name); |
errx(EX_OSERR, "%s: chown/chgrp: %s", |
errx(EX_OSERR, "%s: chown/chgrp: %s", |
safecopy ? tempfile : to_name, strerror(serrno)); |
safecopy ? tempfile : to_name, strerror(serrno)); |
} |
} |
if (fchmod(to_fd, mode)) { |
if (fchmod(to_fd, mode)) { |
|
|
if (fchflags(to_fd, |
if (fchflags(to_fd, |
flags & SETFLAGS ? fset : from_sb.st_flags & ~UF_NODUMP)) { |
flags & SETFLAGS ? fset : from_sb.st_flags & ~UF_NODUMP)) { |
if (errno != EOPNOTSUPP || (from_sb.st_flags & ~UF_NODUMP) != 0) |
if (errno != EOPNOTSUPP || (from_sb.st_flags & ~UF_NODUMP) != 0) |
warnx("%s: chflags: %s", |
warnx("%s: chflags: %s", |
safecopy ? tempfile :to_name, strerror(errno)); |
safecopy ? tempfile :to_name, strerror(errno)); |
} |
} |
|
|