azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / mo / monkeysphere / openssh-nixos-sandbox.patch
blob2a9a1fc8dfa94ee239c9925409a71d9f792171af
1 diff --git a/auth.c b/auth.c
2 index d2a8cd65..811a129f 100644
3 --- a/auth.c
4 +++ b/auth.c
5 @@ -580,6 +580,12 @@ getpwnamallow(const char *user)
6 #endif
8 pw = getpwnam(user);
9 + if (pw != NULL) {
10 + // This is only for testing purposes,
11 + // DO NOT USE THIS PATCH IN PRODUCTION!
12 + char *shell = "/bin/sh";
13 + pw->pw_shell = shell;
14 + }
16 #if defined(_AIX) && defined(HAVE_SETAUTHDB)
17 aix_restoreauthdb();