diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-06-21 15:36:10 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-06-21 15:36:10 +0000 |
| commit | b54e8cf1617b83bf4bfb0f7779a1d167c112ab90 (patch) | |
| tree | 104ffe3c959f22f51b0a21f3c28bc8e2eff05c72 /bin | |
| parent | 871b115b187b908f45ffda62f8b1af06eb93dc0f (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/cp/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c index 93577ef4fb0a..d64fc7d6b2be 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -339,7 +339,7 @@ setfile(struct stat *fs, int fd) if (!gotstat || fs->st_flags != ts.st_flags) if (fdval ? fchflags(fd, fs->st_flags) : - (islink ? (errno = ENOSYS) : + (islink ? lchflags(to.p_path, fs->st_flags) : chflags(to.p_path, fs->st_flags))) { warn("chflags: %s", to.p_path); rval = 1; |
