Skip to content

Commit c6caede

Browse files
committed
Merge branch 'maint'
* 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
2 parents 89ba4e7 + 16529f2 commit c6caede

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ git-%$X: %.o $(GITLIBS)
19361936

19371937
git-imap-send$X: imap-send.o $(GITLIBS)
19381938
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
1939-
$(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL)
1939+
$(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL) $(LIB_4_CRYPTO)
19401940

19411941
git-http-fetch$X: revision.o http.o http-walker.o http-fetch.o $(GITLIBS)
19421942
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \

compat/mingw.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,10 @@ static inline time_t filetime_to_time_t(const FILETIME *ft)
198198
*/
199199
static int do_lstat(int follow, const char *file_name, struct stat *buf)
200200
{
201+
int err;
201202
WIN32_FILE_ATTRIBUTE_DATA fdata;
202203

203-
if (!(errno = get_file_attr(file_name, &fdata))) {
204+
if (!(err = get_file_attr(file_name, &fdata))) {
204205
buf->st_ino = 0;
205206
buf->st_gid = 0;
206207
buf->st_uid = 0;
@@ -233,6 +234,7 @@ static int do_lstat(int follow, const char *file_name, struct stat *buf)
233234
}
234235
return 0;
235236
}
237+
errno = err;
236238
return -1;
237239
}
238240

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ sub maildomain {
960960
sub send_message {
961961
my @recipients = unique_email_list(@to);
962962
@cc = (grep { my $cc = extract_valid_address($_);
963-
not grep { $cc eq $_ } @recipients
963+
not grep { $cc eq $_ || $_ =~ /<\Q${cc}\E>$/ } @recipients
964964
}
965965
map { sanitize_address($_) }
966966
@cc);

0 commit comments

Comments
 (0)