=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/skeyaudit/skeyaudit.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/skeyaudit/skeyaudit.c 2000/08/20 18:42:40 1.9 --- src/usr.bin/skeyaudit/skeyaudit.c 2000/09/20 21:53:49 1.10 *************** *** 1,4 **** ! /* $OpenBSD: skeyaudit.c,v 1.9 2000/08/20 18:42:40 millert Exp $ */ /* * Copyright (c) 1997, 2000 Todd C. Miller --- 1,4 ---- ! /* $OpenBSD: skeyaudit.c,v 1.10 2000/09/20 21:53:49 pjanzen Exp $ */ /* * Copyright (c) 1997, 2000 Todd C. Miller *************** *** 154,166 **** (void)fprintf(out, "To: %s\nSubject: IMPORTANT action required\n", pw->pw_name); ! (void)fprintf(out, "\nYou are nearing the end of your current S/Key sequence for account\n\ %s on system %s.\n\n\ ! Your S/key sequence number is now %d. When it reaches zero\n\ ! you will no longer be able to use S/Key to login into the system.\n\n\ ! Type \"skeyinit -s\" to reinitialize your sequence number.\n\n", pw->pw_name, hostname, seq); (void)fclose(out); if (!interactive) --- 154,174 ---- (void)fprintf(out, "To: %s\nSubject: IMPORTANT action required\n", pw->pw_name); ! if (seq) ! (void)fprintf(out, "\nYou are nearing the end of your current S/Key sequence for account\n\ %s on system %s.\n\n\ ! Your S/Key sequence number is now %d. When it reaches zero\n\ ! you will no longer be able to use S/Key to log into the system.\n\n", pw->pw_name, hostname, seq); + else + (void)fprintf(out, + "\nYou are at the end of your current S/Key sequence for account\n\ + %s on system %s.\n\n\ + At this point you can no longer use S/Key to log into the system.\n\n", + pw->pw_name, hostname); + (void)fprintf(out, + "Type \"skeyinit -s\" to reinitialize your sequence number.\n\n"); (void)fclose(out); if (!interactive)