1 diff -Nur shadow-4.0.0.orig/src/chage.c shadow-4.0.0/src/chage.c
2 --- shadow-4.0.0.orig/src/chage.c Mon Oct 9 20:39:50 2000
3 +++ shadow-4.0.0/src/chage.c Sat Jun 1 09:27:14 2002
5 #define CLOSE_FAIL "failed rewriting %s\n"
7 #define EPOCH "1969-12-31"
8 +#define EPOCH_SHORT "12/31/69"
11 #define DBMERROR2 "error updating DBM shadow entry.\n"
15 printf(_("Account Expires:\t"));
17 + if (expdays == -1) {
18 printf (_("Never\n"));
20 expires = expdays * SCALE;
25 - expdays = strtoday (optarg);
26 + if (strcmp (optarg, EPOCH_SHORT) == 0)
29 + expdays = strtoday (optarg);
31 expdays = strtol (optarg, 0, 10);