diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-12-04 15:31:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-12-04 15:31:51 +0000 |
commit | 4545a38d48e985f11cb8c849be2e0247da3ad63f (patch) | |
tree | 03af8805088bf8294a169a4dcd82a1c00f92a0b0 | |
parent | d9ef0c4b60276be336b4158ae28366b9d44f0ce6 (diff) |
Silently convert s/key -> skey in login_getstyle(). A bit of a hack
but OpenBSD folks are more used to saying s/key.
-rw-r--r-- | lib/libc/gen/login_cap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/login_cap.c b/lib/libc/gen/login_cap.c index e7fa4f564ad..012492d7144 100644 --- a/lib/libc/gen/login_cap.c +++ b/lib/libc/gen/login_cap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_cap.c,v 1.4 2000/11/10 15:33:03 provos Exp $ */ +/* $OpenBSD: login_cap.c,v 1.5 2000/12/04 15:31:50 millert Exp $ */ /*- * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved. @@ -147,6 +147,10 @@ login_getstyle(lc, style, atype) f1 = 0; f2 = 0; + /* Silently convert 's/key' -> 'skey' */ + if (style && strcmp(style, "s/key") == 0) + style = "skey"; + if (!atype || !(auths = login_getcapstr(lc, atype, NULL, NULL))) auths = login_getcapstr(lc, "auth", "", NULL); |