summaryrefslogtreecommitdiffstats
path: root/login-utils/newgrp.c
diff options
context:
space:
mode:
authorSami Kerola2014-09-14 20:07:44 +0200
committerSami Kerola2014-09-19 20:31:03 +0200
commit453fc7165d4f27276f626efc6f70682b41284705 (patch)
tree1e8b97f0d9d0c32261f0717fceca35d6937913c2 /login-utils/newgrp.c
parentnewgrp: avoid use of obsolete getpass() function (diff)
downloadkernel-qcow2-util-linux-453fc7165d4f27276f626efc6f70682b41284705.tar.gz
kernel-qcow2-util-linux-453fc7165d4f27276f626efc6f70682b41284705.tar.xz
kernel-qcow2-util-linux-453fc7165d4f27276f626efc6f70682b41284705.zip
textual: share crypt() error message in sulogin and newgrp
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/newgrp.c')
-rw-r--r--login-utils/newgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/newgrp.c b/login-utils/newgrp.c
index 240c359ac..9c0f8f581 100644
--- a/login-utils/newgrp.c
+++ b/login-utils/newgrp.c
@@ -160,7 +160,7 @@ static int allow_setgid(struct passwd *pe, struct group *ge)
memset_s(xpwd, strlen(xpwd), 0);
free(xpwd);
if (!cbuf)
- warn(_("crypt() failed"));
+ warn(_("crypt failed"));
else if (strcmp(pwd, cbuf) == 0)
return TRUE;
}