]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 21:24:49 +0000 (13:24 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 21:24:49 +0000 (13:24 -0800)
* maint:
  imap-send: link against libcrypto for HMAC and others
  git-send-email.perl: Deduplicate "to:" and "cc:" entries with names
  mingw: do not set errno to 0 on success

Makefile
compat/mingw.c
git-send-email.perl

index 53986b1ecb76fcb30a51c4fc1a86a49ca6549724..919ed2b7ec87cb8399bb7c1119251c1704e2fbe7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1936,7 +1936,7 @@ git-%$X: %.o $(GITLIBS)
 
 git-imap-send$X: imap-send.o $(GITLIBS)
        $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
-               $(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL)
+               $(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL) $(LIB_4_CRYPTO)
 
 git-http-fetch$X: revision.o http.o http-walker.o http-fetch.o $(GITLIBS)
        $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
index 29f403649f0e3c6d4240fc93e6fa1787a017b9ea..fdbf093f6eb704ec0ca0e5abf6baf1f94350676b 100644 (file)
@@ -198,9 +198,10 @@ static inline time_t filetime_to_time_t(const FILETIME *ft)
  */
 static int do_lstat(int follow, const char *file_name, struct stat *buf)
 {
+       int err;
        WIN32_FILE_ATTRIBUTE_DATA fdata;
 
-       if (!(errno = get_file_attr(file_name, &fdata))) {
+       if (!(err = get_file_attr(file_name, &fdata))) {
                buf->st_ino = 0;
                buf->st_gid = 0;
                buf->st_uid = 0;
@@ -233,6 +234,7 @@ static int do_lstat(int follow, const char *file_name, struct stat *buf)
                }
                return 0;
        }
+       errno = err;
        return -1;
 }
 
index f68ed5a5d3208eb0669d7dc1289f40c567e077c7..6e2d79ac661e3f31926c07291eddd953e0446cef 100755 (executable)
@@ -960,7 +960,7 @@ sub maildomain {
 sub send_message {
        my @recipients = unique_email_list(@to);
        @cc = (grep { my $cc = extract_valid_address($_);
-                     not grep { $cc eq $_ } @recipients
+                     not grep { $cc eq $_ || $_ =~ /<\Q${cc}\E>$/ } @recipients
                    }
               map { sanitize_address($_) }
               @cc);