diff options
| author | Paul Eggert | 2011-07-16 18:34:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-16 18:34:49 -0700 |
| commit | 8d576a545d08182fae5c7d705a53da2a84e0d85a (patch) | |
| tree | 4a63ae460c346b0a58d09b8f903ed442a1abb2d2 /src | |
| parent | b1f367f797aa19047904e73a67e52f391c720e0d (diff) | |
| parent | c2216f8e3a2a17ba5b843f0329ce52c920a336b2 (diff) | |
| download | emacs-8d576a545d08182fae5c7d705a53da2a84e0d85a.tar.gz emacs-8d576a545d08182fae5c7d705a53da2a84e0d85a.zip | |
Merge from trunk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/fileio.c | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9e46b7d3318..1dcf39498f3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -242,6 +242,14 @@ | |||
| 242 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally | 242 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally |
| 243 | well either way, and we prefer signed to unsigned. | 243 | well either way, and we prefer signed to unsigned. |
| 244 | 244 | ||
| 245 | 2011-07-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 246 | |||
| 247 | * fileio.c (Fcopy_file): Pacify gcc re fchown. (Bug#9002) | ||
| 248 | This works around a problem with the previous change to Fcopy_file. | ||
| 249 | Recent glibc declares fchown with __attribute__((warn_unused_result)), | ||
| 250 | and without this change, GCC might complain about discarding | ||
| 251 | fchown's return value. | ||
| 252 | |||
| 245 | 2011-07-16 Juanma Barranquero <lekktu@gmail.com> | 253 | 2011-07-16 Juanma Barranquero <lekktu@gmail.com> |
| 246 | 254 | ||
| 247 | * makefile.w32-in (GLOBAL_SOURCES): Add gnutls.c (followup to bug#9059). | 255 | * makefile.w32-in (GLOBAL_SOURCES): Add gnutls.c (followup to bug#9059). |
diff --git a/src/fileio.c b/src/fileio.c index c67bea79bd3..bdea302a0d6 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -38,6 +38,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | #include <selinux/context.h> | 38 | #include <selinux/context.h> |
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | #include <ignore-value.h> | ||
| 42 | |||
| 41 | #include "lisp.h" | 43 | #include "lisp.h" |
| 42 | #include "intervals.h" | 44 | #include "intervals.h" |
| 43 | #include "buffer.h" | 45 | #include "buffer.h" |
| @@ -1960,7 +1962,7 @@ on the system, we copy the SELinux context of FILE to NEWNAME. */) | |||
| 1960 | if (input_file_statable_p) | 1962 | if (input_file_statable_p) |
| 1961 | { | 1963 | { |
| 1962 | if (!NILP (preserve_uid_gid)) | 1964 | if (!NILP (preserve_uid_gid)) |
| 1963 | fchown (ofd, st.st_uid, st.st_gid); | 1965 | ignore_value (fchown (ofd, st.st_uid, st.st_gid)); |
| 1964 | if (fchmod (ofd, st.st_mode & 07777) != 0) | 1966 | if (fchmod (ofd, st.st_mode & 07777) != 0) |
| 1965 | report_file_error ("Doing chmod", Fcons (newname, Qnil)); | 1967 | report_file_error ("Doing chmod", Fcons (newname, Qnil)); |
| 1966 | } | 1968 | } |