9dd81de3fbc1d786e0456dd714a67a06d4ac936b
[jackhill/guix/guix.git] / distro / packages / patches / lsh-no-root-login.patch
1 Correctly handle the `--no-root-login' option.
2
3 --- lsh-2.0.4/src/lshd.c 2006-05-01 13:47:44.000000000 +0200
4 +++ lsh-2.0.4/src/lshd.c 2009-09-08 12:20:36.000000000 +0200
5 @@ -758,6 +758,10 @@ main_argp_parser(int key, char *arg, str
6 self->allow_root = 1;
7 break;
8
9 + case OPT_NO_ROOT_LOGIN:
10 + self->allow_root = 0;
11 + break;
12 +
13 case OPT_KERBEROS_PASSWD:
14 self->pw_helper = PATH_KERBEROS_HELPER;
15 break;
16