diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-16 14:53:38 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-16 14:53:38 -0700 |
commit | a80314570479945eb610a4f3f30fd6e82100195d (patch) | |
tree | d1b09d9f03fdc329312661995797c1bc6b9b20f5 | |
parent | 81746738bbd5e36291e684c74ffef08e43405b10 (diff) | |
download | emacs-a80314570479945eb610a4f3f30fd6e82100195d.tar.gz |
* fileio.c (Fcopy_file): Don't diagnose fchown failures.
Fixes: debbugs:9002
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/fileio.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3c50cbb1d03..961b3e0234a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-07-16 Paul Eggert <eggert@cs.ucla.edu> + + * fileio.c (Fcopy_file): Don't diagnose fchown failures. (Bug#9002) + 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> * process.c: Use the same condition for POLL_FOR_INPUT in both diff --git a/src/fileio.c b/src/fileio.c index c6f8dfe4683..de822cdb466 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1959,8 +1959,8 @@ on the system, we copy the SELinux context of FILE to NEWNAME. */) owner and group. */ if (input_file_statable_p) { - if (!NILP (preserve_uid_gid) && fchown (ofd, st.st_uid, st.st_gid) != 0) - report_file_error ("Doing chown", Fcons (newname, Qnil)); + if (!NILP (preserve_uid_gid)) + fchown (ofd, st.st_uid, st.st_gid); if (fchmod (ofd, st.st_mode & 07777) != 0) report_file_error ("Doing chmod", Fcons (newname, Qnil)); } |