Commit a8031457 authored by Paul Eggert's avatar Paul Eggert
Browse files

* fileio.c (Fcopy_file): Don't diagnose fchown failures.

Fixes: debbugs:9002
parent 81746738
2011-07-16 Paul Eggert <>
* fileio.c (Fcopy_file): Don't diagnose fchown failures. (Bug#9002)
2011-07-16 Lars Magne Ingebrigtsen <>
* process.c: Use the same condition for POLL_FOR_INPUT in both
......@@ -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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment