packages: nss_extrausers/nss_extrausers-pld.patch (NEW) - empty fields in s...

hawk hawk at pld-linux.org
Sat Jul 18 15:23:16 CEST 2009


Author: hawk                         Date: Sat Jul 18 13:23:16 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- empty fields in shadow defaults to -1 in PLD

---- Files affected:
packages/nss_extrausers:
   nss_extrausers-pld.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nss_extrausers/nss_extrausers-pld.patch
diff -u /dev/null packages/nss_extrausers/nss_extrausers-pld.patch:1.1
--- /dev/null	Sat Jul 18 15:23:16 2009
+++ packages/nss_extrausers/nss_extrausers-pld.patch	Sat Jul 18 15:23:11 2009
@@ -0,0 +1,31 @@
+diff -ur libnss-extrausers-0.2.orig/shadow.c libnss-extrausers-0.2/shadow.c
+--- libnss-extrausers-0.2.orig/shadow.c	2009-05-27 13:42:54.000000000 +0200
++++ libnss-extrausers-0.2/shadow.c	2009-07-18 15:18:58.000000000 +0200
+@@ -123,22 +123,27 @@
+ 		p = ++h;
+ 		/* extract min */
+ 		t_min = strtol(p,&h,10);
++		if(p == h) t_min = -1;
+ 		p=h;
+ 		CHECKCOLON;
+ 		/* extract max */
+ 		t_max = strtol(p,&h,10);
++		if(p == h) t_max = -1;
+ 		p=h;
+ 		CHECKCOLON;
+ 		/* extract days of warning */
+ 		t_warn = strtol(p,&h,10);
++		if(p == h) t_warn = -1;
+ 		p=h;
+ 		CHECKCOLON;
+ 		/* extract days of inactivity */
+ 		t_inact = strtol(p,&h,10);
++		if(p == h) t_inact = -1;
+ 		p=h;
+ 		CHECKCOLON;
+ 		/* extract day of expire */
+ 		t_expire = strtol(p,&h,10);
++		if(p == h) t_expire = -1;
+ 		p=h;
+ 		CHECKCOLON;
+ 		/* extract reserved flags */
================================================================


More information about the pld-cvs-commit mailing list