aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-09-18 19:17:01 +0000
committerKarl Heuer1994-09-18 19:17:01 +0000
commitd630361111ed550290105a55d82f9fb7812e0b36 (patch)
tree82e7fd1a21a8f369ecaf2902d210e7030eef0bd9 /src
parentc0c4505967b4ba8e0598b002dc6163dff5cadf2e (diff)
downloademacs-d630361111ed550290105a55d82f9fb7812e0b36.tar.gz
emacs-d630361111ed550290105a55d82f9fb7812e0b36.zip
(Fcopy_file): Use set_file_times, and check for the error return.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 1274694c8ce..299eb2d2609 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1836,7 +1836,8 @@ A prefix arg makes KEEP-TIME non-nil.")
1836 EMACS_TIME atime, mtime; 1836 EMACS_TIME atime, mtime;
1837 EMACS_SET_SECS_USECS (atime, st.st_atime, 0); 1837 EMACS_SET_SECS_USECS (atime, st.st_atime, 0);
1838 EMACS_SET_SECS_USECS (mtime, st.st_mtime, 0); 1838 EMACS_SET_SECS_USECS (mtime, st.st_mtime, 0);
1839 EMACS_SET_UTIMES (XSTRING (newname)->data, atime, mtime); 1839 if (set_file_times (XSTRING (newname)->data, atime, mtime))
1840 report_file_error ("I/O error", Fcons (newname, Qnil));
1840 } 1841 }
1841#ifdef APOLLO 1842#ifdef APOLLO
1842 if (!egetenv ("USE_DOMAIN_ACLS")) 1843 if (!egetenv ("USE_DOMAIN_ACLS"))