1 diff -urN shadow-4.0.6.orig/src/chage.c shadow-4.0.6/src/chage.c
2 --- shadow-4.0.6.orig/src/chage.c 2004-11-18 15:47:10.970295408 +0100
3 +++ shadow-4.0.6/src/chage.c 2004-11-18 21:36:19.617616944 +0100
5 extern int sp_dbm_mode;
8 -#define EPOCH "1969-12-31"
9 +#define EPOCH_SHORT "12/31/69"
11 /* local function prototypes */
12 static void usage (void);
14 change_field (buf, sizeof buf,
15 _("Last Password Change (YYYY-MM-DD)"));
17 - if (strcmp (buf, EPOCH) == 0)
18 + if (strcmp (buf, EPOCH_SHORT) == 0)
20 else if ((lastday = strtoday (buf)) == -1)
23 change_field (buf, sizeof buf,
24 _("Account Expiration Date (YYYY-MM-DD)"));
26 - if (strcmp (buf, EPOCH) == 0)
27 + if (strcmp (buf, EPOCH_SHORT) == 0)
29 else if ((expdays = strtoday (buf)) == -1)
34 printf (_("Account expires\t\t\t\t\t\t: "));
36 + if (expdays == -1) {
37 printf (_("never\n"));
39 expires = expdays * SCALE;
44 - expdays = strtoday (optarg);
45 + if (strcmp (optarg, EPOCH_SHORT) == 0)
48 + expdays = strtoday (optarg);
51 expdays = strtol (optarg, 0, 10);