SOURCES: shadow-chage_expdays.patch - updated to 4.0.16

glen glen at pld-linux.org
Wed Jun 7 23:37:20 CEST 2006


Author: glen                         Date: Wed Jun  7 21:37:20 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated  to 4.0.16

---- Files affected:
SOURCES:
   shadow-chage_expdays.patch (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/shadow-chage_expdays.patch
diff -u SOURCES/shadow-chage_expdays.patch:1.4 SOURCES/shadow-chage_expdays.patch:1.5
--- SOURCES/shadow-chage_expdays.patch:1.4	Thu Nov 18 22:25:41 2004
+++ SOURCES/shadow-chage_expdays.patch	Wed Jun  7 23:37:15 2006
@@ -1,6 +1,5 @@
-diff -urN shadow-4.0.6.orig/src/chage.c shadow-4.0.6/src/chage.c
---- shadow-4.0.6.orig/src/chage.c	2004-11-18 15:47:10.970295408 +0100
-+++ shadow-4.0.6/src/chage.c	2004-11-18 21:36:19.617616944 +0100
+--- shadow-4.0.6/src/chage.c	2004-11-18 21:36:19.617616944 +0100
++++ shadow-4.0.16/src/chage.c	2006-06-08 00:30:20.837211299 +0300
 @@ -84,7 +84,7 @@
  extern int sp_dbm_mode;
  #endif
@@ -28,25 +27,24 @@
  		expdays = -1;
  	else if ((expdays = strtoday (buf)) == -1)
  		return 0;
-@@ -279,7 +279,7 @@
+@@ -274,7 +274,7 @@
+ 	 * password expiring or not.
  	 */
- 
  	printf (_("Account expires\t\t\t\t\t\t: "));
--	if (expdays <= 0) {
+-	if (expdays < 0) {
 +	if (expdays == -1) {
  		printf (_("never\n"));
  	} else {
  		expires = expdays * SCALE;
-@@ -422,7 +422,11 @@
- 		case 'E':
- 			Eflg++;
- 			if (!isnum (optarg))
--				expdays = strtoday (optarg);
-+                                 if (strcmp (optarg, EPOCH_SHORT) == 0)
-+                                         expdays = -1;
-+                                 else
-+                                         expdays = strtoday (optarg);
-+					
- 			else
- 				expdays = strtol (optarg, 0, 10);
- 			break;
+@@ -403,7 +403,10 @@
+ 			case 'E':
+ 				Eflg++;
+ 				if (!isnum (optarg))
+-					expdays = strtoday (optarg);
++					if (strcmp (optarg, EPOCH_SHORT) == 0)
++						expdays = -1;
++					else
++						expdays = strtoday (optarg);
+ 				else
+ 					expdays = strtol (optarg, 0, 10);
+ 				break;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/shadow-chage_expdays.patch?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list