[hackers] [ubase] the shell field in passwd is optional - fallback to /bin/sh || sin

From: <git_AT_suckless.org>
Date: Thu, 05 Jun 2014 13:18:31 +0200

commit d3709f91a2028ffdee6721c96b5d082f696bddb9
Author: sin <sin_AT_2f30.org>
Date: Thu Jun 5 12:12:18 2014 +0100

    the shell field in passwd is optional - fallback to /bin/sh

diff --git a/login.c b/login.c
index fed0945..54c0046 100644
--- a/login.c
+++ b/login.c
_AT_@ -110,16 +110,18 @@ login:
 static int
 dologin(struct passwd *pw, int preserve)
 {
+ char *shell = pw->pw_shell[0] == '
Received on Thu Jun 05 2014 - 13:18:31 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 05 2014 - 13:24:08 CEST