summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-01-31 19:12:10 +0000
committerderaadt <deraadt@openbsd.org>2001-01-31 19:12:10 +0000
commit0aa6f08fb729e37792fa2cb9d8fb542d7a826a68 (patch)
treefab6bc8d46e45df6f7d0c9ad14cec4f5f46509f4
parentmove utmp to large format, usernames to 32 chars; downsj (diff)
downloadwireguard-openbsd-0aa6f08fb729e37792fa2cb9d8fb542d7a826a68.tar.xz
wireguard-openbsd-0aa6f08fb729e37792fa2cb9d8fb542d7a826a68.zip
more fat utmp; ianm@cit.uws.edu.au
-rw-r--r--etc/security6
-rw-r--r--libexec/getty/main.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/etc/security b/etc/security
index 56eea6743b2..1fa7a69a761 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.43 2000/12/22 08:04:48 todd Exp $
+# $OpenBSD: security,v 1.44 2001/01/31 19:12:10 deraadt Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -39,8 +39,8 @@ awk -F: '{
printf("Line %d has an empty login field:\n%s\n", NR, $0);
else if ($1 !~ /^[A-Za-z0-9][A-Za-z0-9_-]*$/)
printf("Login %s has non-alphanumeric characters.\n", $1);
- if (length($1) > 8)
- printf("Login %s has more than 8 characters.\n", $1);
+ if (length($1) > 32)
+ printf("Login %s has more than 32 characters.\n", $1);
if ($2 == "")
printf("Login %s has no password.\n", $1);
if ($2 != "" && length($2) != 13 && ($10 ~ /.*sh$/ || $10 == "") &&
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 4783404a78c..5a900c5fe96 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.17 2001/01/28 19:34:28 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.18 2001/01/31 19:13:36 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/
-static char rcsid[] = "$OpenBSD: main.c,v 1.17 2001/01/28 19:34:28 niklas Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.18 2001/01/31 19:13:36 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -90,7 +90,7 @@ int crmod, digit, lower, upper;
char hostname[MAXHOSTNAMELEN];
struct utsname kerninfo;
-char name[16];
+char name[MAXLOGNAME];
char dev[] = _PATH_DEV;
char ttyn[32];
char *portselector();