summary refs log tree commit diff
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--daemon.c5
1 files changed, 1 insertions, 4 deletions
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);