From 508cbbd4ab7ff7432db28f21d0fda120831aeee6 Mon Sep 17 00:00:00 2001 From: millert Date: Mon, 7 Apr 1997 06:43:09 +0000 Subject: [PATCH] Better error message when lookup of getlogin() != uid --- usr.bin/passwd/local_passwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c index b8b50660feb..d45ea80bc48 100644 --- a/usr.bin/passwd/local_passwd.c +++ b/usr.bin/passwd/local_passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: local_passwd.c,v 1.7 1997/03/27 00:30:53 weingart Exp $ */ +/* $OpenBSD: local_passwd.c,v 1.8 1997/04/07 06:43:09 millert Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)local_passwd.c 5.5 (Berkeley) 5/6/91";*/ -static char rcsid[] = "$OpenBSD: local_passwd.c,v 1.7 1997/03/27 00:30:53 weingart Exp $"; +static char rcsid[] = "$OpenBSD: local_passwd.c,v 1.8 1997/04/07 06:43:09 millert Exp $"; #endif /* not lint */ #include @@ -72,7 +72,7 @@ local_passwd(uname) uid = getuid(); if (uid && uid != pw->pw_uid) { - warnx("login != uid: %s", strerror(EACCES)); + warnx("login/uid mismatch, username argument required."); return(1); } -- 2.20.1