Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
81e56e61
Commit
81e56e61
authored
Mar 20, 2011
by
Paul Eggert
Browse files
* fileio.c (Fcopy_file): Report error if fchown or fchmod fail.
parent
699979fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/ChangeLog
src/ChangeLog
+4
-0
src/fileio.c
src/fileio.c
+4
-3
No files found.
src/ChangeLog
View file @
81e56e61
2011-03-21 Paul Eggert <eggert@cs.ucla.edu>
* fileio.c (Fcopy_file): Report error if fchown or fchmod fail.
2011-03-20 Paul Eggert <eggert@cs.ucla.edu>
2011-03-20 Paul Eggert <eggert@cs.ucla.edu>
* emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
* emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
src/fileio.c
View file @
81e56e61
...
@@ -1951,9 +1951,10 @@ on the system, we copy the SELinux context of FILE to NEWNAME. */)
...
@@ -1951,9 +1951,10 @@ on the system, we copy the SELinux context of FILE to NEWNAME. */)
owner and group. */
owner and group. */
if
(
input_file_statable_p
)
if
(
input_file_statable_p
)
{
{
if
(
!
NILP
(
preserve_uid_gid
))
if
(
!
NILP
(
preserve_uid_gid
)
&&
fchown
(
ofd
,
st
.
st_uid
,
st
.
st_gid
)
!=
0
)
fchown
(
ofd
,
st
.
st_uid
,
st
.
st_gid
);
report_file_error
(
"Doing chown"
,
Fcons
(
newname
,
Qnil
));
fchmod
(
ofd
,
st
.
st_mode
&
07777
);
if
(
fchmod
(
ofd
,
st
.
st_mode
&
07777
)
!=
0
)
report_file_error
(
"Doing chmod"
,
Fcons
(
newname
,
Qnil
));
}
}
#endif
/* not MSDOS */
#endif
/* not MSDOS */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment