diff options
Diffstat (limited to 'src/firecfg')
-rw-r--r-- | src/firecfg/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firecfg/main.c b/src/firecfg/main.c index da962c35d..ccb55457c 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c | |||
@@ -288,7 +288,7 @@ static void set_links_homedir(const char *homedir) { | |||
288 | free(firejail_exec); | 288 | free(firejail_exec); |
289 | } | 289 | } |
290 | 290 | ||
291 | static char *get_user(void) { | 291 | static char *get_sudo_user(void) { |
292 | char *user = getenv("SUDO_USER"); | 292 | char *user = getenv("SUDO_USER"); |
293 | if (!user) { | 293 | if (!user) { |
294 | user = getpwuid(getuid())->pw_name; | 294 | user = getpwuid(getuid())->pw_name; |
@@ -326,7 +326,7 @@ int main(int argc, char **argv) { | |||
326 | int bindir_set = 0; | 326 | int bindir_set = 0; |
327 | 327 | ||
328 | // user setup | 328 | // user setup |
329 | char *user = get_user(); | 329 | char *user = get_sudo_user(); |
330 | assert(user); | 330 | assert(user); |
331 | uid_t uid; | 331 | uid_t uid; |
332 | gid_t gid; | 332 | gid_t gid; |