diff options
author | Stan Shebs <stanshebs@google.com> | 2015-08-21 14:50:53 -0700 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2015-08-21 14:50:53 -0700 |
commit | aeca36379f1bb893a2e3fb32aa1b7a9c2b869e64 (patch) | |
tree | 1f24171bf5c1b08425765d6708d2f91e765caad5 /nss | |
parent | b5861b06a6dccc2b34f235442adee01de4e9d8dd (diff) | |
download | glibc-aeca36379f1bb893a2e3fb32aa1b7a9c2b869e64.tar.gz |
Describe borg-pwd better, remove dead code.
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nss_borg/borg-pwd.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/nss/nss_borg/borg-pwd.c b/nss/nss_borg/borg-pwd.c index afa696c6fd..c4ff035984 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 <stdio.h> #include <pwd.h> @@ -10,17 +12,10 @@ #include <errno.h> #include <string.h> -#ifdef NSSBORG_STANDALONE -#include <pthread.h> -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.h> __libc_lock_define_initialized (static, lock) #define NSSBORG_LOCK __libc_lock_lock (lock) #define NSSBORG_UNLOCK __libc_lock_unlock (lock); -#endif static FILE *f; |