aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index d4fb0383119..c67bea79bd3 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. */)
1959 owner and group. */ 1959 owner and group. */
1960 if (input_file_statable_p) 1960 if (input_file_statable_p)
1961 { 1961 {
1962 if (!NILP (preserve_uid_gid) && fchown (ofd, st.st_uid, st.st_gid) != 0) 1962 if (!NILP (preserve_uid_gid))
1963 report_file_error ("Doing chown", Fcons (newname, Qnil)); 1963 fchown (ofd, st.st_uid, st.st_gid);
1964 if (fchmod (ofd, st.st_mode & 07777) != 0) 1964 if (fchmod (ofd, st.st_mode & 07777) != 0)
1965 report_file_error ("Doing chmod", Fcons (newname, Qnil)); 1965 report_file_error ("Doing chmod", Fcons (newname, Qnil));
1966 } 1966 }