summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-09 13:37:52 +0000
committerJim Meyering <jim@meyering.net>2004-06-09 13:37:52 +0000
commite4ccef8ddc672f9e5ee4963db550f97c1ae2edc8 (patch)
tree1e366cfe6f14538087e8af43480bb56f23d1df4c /src/cat.c
parent7c6999b6f83522d31aeabc6eaed9f923824723d1 (diff)
downloadcoreutils-e4ccef8ddc672f9e5ee4963db550f97c1ae2edc8.tar.xz
Adjust chmod and chown to be similar if -c or -v are given. In
particular, a no-op chown is no longer reported as a change; this reverts to previous behavior. Also, fix both commands so that -v report failures even if the failure is not due to the chmod or chown syscalls. * src/chown-core.c (change_file_owner): Return -1 on error, not 1 sometimes and -1 on others. Our caller ORs together our results, and (-1 | 1) == 0 on ones-complement hosts. With -v report all errors verbosely, not just some. Fix bug when chopt->root_dev_ino && !chopt->affect_symlink_referent: file_stats wasn't set properly in that case.
Diffstat (limited to 'src/cat.c')
0 files changed, 0 insertions, 0 deletions