From: Stan Shebs Date: Fri, 21 Aug 2015 21:50:53 +0000 (-0700) Subject: Describe borg-pwd better, remove dead code. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeca36379f1bb893a2e3fb32aa1b7a9c2b869e64;p=thirdparty%2Fglibc.git Describe borg-pwd better, remove dead code. --- diff --git a/nss/nss_borg/borg-pwd.c b/nss/nss_borg/borg-pwd.c index afa696c6fd7..c4ff0359840 100644 --- a/nss/nss_borg/borg-pwd.c +++ b/nss/nss_borg/borg-pwd.c @@ -2,6 +2,8 @@ // Author: Paul Menage // An NSS module that extends local user account lookup to the file /etc/passwd.borg +// (Despite the suggestive name, passwd.borg is just a second file in the standard +// passwd format, separated for various reasons. -sts 2015) #include #include @@ -10,17 +12,10 @@ #include #include -#ifdef NSSBORG_STANDALONE -#include -static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; -#define NSSBORG_LOCK pthread_mutex_lock(&mutex) -#define NSSBORG_UNLOCK pthread_mutex_unlock(&mutex) -#else #include __libc_lock_define_initialized (static, lock) #define NSSBORG_LOCK __libc_lock_lock (lock) #define NSSBORG_UNLOCK __libc_lock_unlock (lock); -#endif static FILE *f;