linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / lsh / lshd-no-root-login.patch
blob9dd81de3fbc1d786e0456dd714a67a06d4ac936b
1 Correctly handle the `--no-root-login' option.
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;
9 + case OPT_NO_ROOT_LOGIN:
10 + self->allow_root = 0;
11 + break;
13 case OPT_KERBEROS_PASSWD:
14 self->pw_helper = PATH_KERBEROS_HELPER;
15 break;