aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-07-16 18:34:49 -0700
committerPaul Eggert2011-07-16 18:34:49 -0700
commit8d576a545d08182fae5c7d705a53da2a84e0d85a (patch)
tree4a63ae460c346b0a58d09b8f903ed442a1abb2d2
parentb1f367f797aa19047904e73a67e52f391c720e0d (diff)
parentc2216f8e3a2a17ba5b843f0329ce52c920a336b2 (diff)
downloademacs-8d576a545d08182fae5c7d705a53da2a84e0d85a.tar.gz
emacs-8d576a545d08182fae5c7d705a53da2a84e0d85a.zip
Merge from trunk.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/smtpmail.el9
-rw-r--r--src/ChangeLog8
-rw-r--r--src/fileio.c4
4 files changed, 21 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 15f742ed91a..ae54b3733f6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-07-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * mail/smtpmail.el (smtpmail-via-smtp): Query the user for
4 password if we get errors 550 to 554.
5
12011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * net/gnutls.el (gnutls-log-level): Removed. 8 * net/gnutls.el (gnutls-log-level): Removed.
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 073e2fa4a3c..cc46660712f 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -788,10 +788,11 @@ The list is in preference order.")
788 nil) 788 nil)
789 ((and auth-mechanisms 789 ((and auth-mechanisms
790 (not ask-for-password) 790 (not ask-for-password)
791 (= (car result) 550)) 791 (>= (car result) 550)
792 ;; We got a "550 relay not permitted", and the server 792 (<= (car result) 554))
793 ;; accepts credentials, so we try again, but ask for a 793 ;; We got a "550 relay not permitted" (or the like),
794 ;; password first. 794 ;; and the server accepts credentials, so we try
795 ;; again, but ask for a password first.
795 (smtpmail-send-command process "QUIT") 796 (smtpmail-send-command process "QUIT")
796 (smtpmail-read-response process) 797 (smtpmail-read-response process)
797 (delete-process process) 798 (delete-process process)
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
2452011-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
2452011-07-16 Juanma Barranquero <lekktu@gmail.com> 2532011-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 }