diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-12-21 19:59:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-21 19:59:07 +0100 |
commit | 5498c57cdd637eb4f42ce8e296ce9ca4ab66e289 (patch) | |
tree | 2806f731354fe228714c4811b9676378338ba43e /git-compat-util.h | |
parent | Merge branch 'jk/send-email-ssl-errors' (diff) | |
parent | ident: loosen getpwuid error in non-strict mode (diff) | |
download | git-5498c57cdd637eb4f42ce8e296ce9ca4ab66e289.tar.xz git-5498c57cdd637eb4f42ce8e296ce9ca4ab66e289.zip |
Merge branch 'jk/ident-loosen-getpwuid'
When getpwuid() on the system returned NULL (e.g. the user is not
in the /etc/passwd file or other uid-to-name mappings), the
codepath to find who the user is to record it in the reflog barfed
and died. Loosen the check in this codepath, which already accepts
questionable ident string (e.g. host part of the e-mail address is
obviously bogus), and in general when we operate fmt_ident() function
in non-strict mode.
* jk/ident-loosen-getpwuid:
ident: loosen getpwuid error in non-strict mode
ident: keep a flag for bogus default_email
ident: make xgetpwuid_self() a static local helper
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 8e3986791d..2da0a75a38 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -929,9 +929,6 @@ int access_or_die(const char *path, int mode, unsigned flag); /* Warn on an inaccessible file that ought to be accessible */ void warn_on_inaccessible(const char *path); -/* Get the passwd entry for the UID of the current process. */ -struct passwd *xgetpwuid_self(void); - #ifdef GMTIME_UNRELIABLE_ERRORS struct tm *git_gmtime(const time_t *); struct tm *git_gmtime_r(const time_t *, struct tm *); |