From daac7db044d1e0f270d12791810414815113058c Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 16 Aug 2020 17:32:23 -0400 Subject: Don't set LOGNAME LOGNAME is a SysV thing. This is a BSD program. --- daemon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 84b820d..0e15c12 100644 --- a/daemon.c +++ b/daemon.c @@ -242,10 +242,7 @@ int main(int argc, char *argv[]) { serviceUID = user->pw_uid; serviceGID = group->gr_gid; - int len = asprintf(&serviceEnviron[LOGNAME], "LOGNAME=%s", user->pw_name); - if (len < 0) err(EX_OSERR, "asprintf"); - - len = asprintf(&serviceEnviron[USER], "USER=%s", user->pw_name); + int len = asprintf(&serviceEnviron[USER], "USER=%s", user->pw_name); if (len < 0) err(EX_OSERR, "asprintf"); len = asprintf(&serviceEnviron[HOME], "HOME=%s", user->pw_dir); -- cgit 1.4.1 ght'>
summary refs log tree commit diff
path: root/rc.d (unfollow)
Commit message (Expand)Author
2020-01-14Reference IRCv3.1 SASL specJune McEnroe
2020-01-14Ensure ansi resets formatting and null-terminatesJune McEnroe
2020-01-14Implement IRC formatting to ANSI translationJune McEnroe
2020-01-14Add -b flag for live backupJune McEnroe
2020-01-14Add columnsize = 0 option to FTS indexJune McEnroe
2020-01-12Add option for client cert and SASL EXTERNALJune McEnroe
2020-01-12Add Linux.mkJune McEnroe
2020-01-11Fix unscoop dedup window syntaxJune McEnroe
2020-01-11Bump busy timeout to 10sJune McEnroe