From 06d8fb46e70ef921d7d5d03a7649237387ed3b69 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Tue, 18 Jul 2017 10:45:57 -0400 Subject: [PATCH] change login detection to `true' Using /bin/exit put a soft dependency on execline that wasn't intended. --- tlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tlock.c b/tlock.c index fd0cb3c..a1c58ad 100644 --- a/tlock.c +++ b/tlock.c @@ -126,8 +126,8 @@ static void get_correct_password(const char *username) if (!pid) { /* We are child */ - execl("/bin/su", "su", "-", username, "-c", - "/bin/exit 0", (char *) 0); + execl("/bin/su", "su", "-", username, "-c", "true", + (char *) 0); _exit(-1); } -- 2.11.4.GIT