From 7e9bbc6b0926ed6c382d1d85f4c88d0e77b6cad8 Mon Sep 17 00:00:00 2001 From: "jan@unixpapa.com" Date: Wed, 1 Feb 2012 11:54:01 +0000 Subject: [PATCH] Don't define "uid" if SERVER_UID not defined. --- pwauth/CHANGES | 3 +++ pwauth/main.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pwauth/CHANGES b/pwauth/CHANGES index 281add6..7200f2e 100644 --- a/pwauth/CHANGES +++ b/pwauth/CHANGES @@ -1,6 +1,9 @@ Pwauth Change Log ================= +VERSION 2.3.11 - + - Don't define "uid" variable if SERVER_UID is not defined. + VERSION 2.3.10 - Oct 5, 2011 - Changed the serialized sleep code in snooze.c to use fcntl() locking instead of flock() locking. Fcntl() locking is a POSIX standard and diff --git a/pwauth/main.c b/pwauth/main.c index ea9e9c7..5dda8db 100644 --- a/pwauth/main.c +++ b/pwauth/main.c @@ -52,7 +52,10 @@ main(int argc, char **argv) char login[BFSZ+1], passwd[BFSZ+1]; char *c, *strchr(); #endif - int uid,i; +#ifdef SERVER_UIDS + int uid; +#endif + int i; int status; struct rlimit rlim; -- 2.40.0