diff options
author | Christian Rößler | 2021-05-03 17:48:32 +0200 |
---|---|---|
committer | Christian Rößler | 2021-05-03 17:48:32 +0200 |
commit | cb68b5992db69751839007e9346dd2f71b7a1fcc (patch) | |
tree | 6af0d907a09972ac9a704934f120eca80aedcc62 /core/modules/run-virt/pw_daemon.c | |
parent | [run-virt] Linux scripts: umounter -bugs, +webdav (fuse), KDE resolution (diff) | |
parent | [nvidia-libs] Whiteout list is optional, so no error (diff) | |
download | mltk-cb68b5992db69751839007e9346dd2f71b7a1fcc.tar.gz mltk-cb68b5992db69751839007e9346dd2f71b7a1fcc.tar.xz mltk-cb68b5992db69751839007e9346dd2f71b7a1fcc.zip |
Merge branch 'master' of git.openslx.org:openslx-ng/mltk
Diffstat (limited to 'core/modules/run-virt/pw_daemon.c')
-rw-r--r-- | core/modules/run-virt/pw_daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/run-virt/pw_daemon.c b/core/modules/run-virt/pw_daemon.c index 0c9508a3..f25ffffc 100644 --- a/core/modules/run-virt/pw_daemon.c +++ b/core/modules/run-virt/pw_daemon.c @@ -149,7 +149,10 @@ static int mode_daemon(const uid_t uidNumber) const char *envuser = getenv("USERNAME"); volatile char *envpass = getenv("PASSWORD"); const char *pwsocket = getenv("PWSOCKET"); + const char *localstr = getenv("LOCAL_PW"); + int allowLocal = localstr != NULL && atoi(localstr); gid_t gidNumber = 65534; + memset(&addr, 0, sizeof(addr)); memset(&sig, 0, sizeof(sig)); if (envuser == NULL) { |