X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuserplex.c;h=699cbe558b672cbcd3f57f3caa5d107729f425a6;hb=3227f13ea5a31e6f94d98ddc3b8c5a42d2f7db51;hp=b66490f1ac57fdd34e9bfd8b04e380cc6d8470cf;hpb=d43312387d7f7841101e7a600c2072dd076643aa;p=ashd.git diff --git a/src/userplex.c b/src/userplex.c index b66490f..699cbe5 100644 --- a/src/userplex.c +++ b/src/userplex.c @@ -53,6 +53,7 @@ static void login(struct passwd *pwd) { int fd; + setsid(); if(getuid() == 0) { if(initgroups(pwd->pw_name, pwd->pw_gid)) { flog(LOG_ERR, "could not init group list for %s: %s", pwd->pw_name, strerror(errno));