diff options
author | 2016-01-24 20:31:52 -0500 | |
---|---|---|
committer | 2016-01-24 20:31:52 -0500 | |
commit | dfd660f80d8a364dc45b750a1f921adf4f2af450 (patch) | |
tree | 4690f1a4e5f5e4f6b8c94940da3cd67c5cc9ad78 /src/firejail/shutdown.c | |
parent | testing (diff) | |
download | firejail-dfd660f80d8a364dc45b750a1f921adf4f2af450.tar.gz firejail-dfd660f80d8a364dc45b750a1f921adf4f2af450.tar.zst firejail-dfd660f80d8a364dc45b750a1f921adf4f2af450.zip |
0.9.38 testing
Diffstat (limited to 'src/firejail/shutdown.c')
-rw-r--r-- | src/firejail/shutdown.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/shutdown.c b/src/firejail/shutdown.c index 131f663d4..edaac7eb9 100644 --- a/src/firejail/shutdown.c +++ b/src/firejail/shutdown.c | |||
@@ -54,8 +54,14 @@ void shut(pid_t pid) { | |||
54 | printf("Switching to pid %u, the first child process inside the sandbox\n", (unsigned) pid); | 54 | printf("Switching to pid %u, the first child process inside the sandbox\n", (unsigned) pid); |
55 | } | 55 | } |
56 | } | 56 | } |
57 | else { | ||
58 | fprintf(stderr, "Error: this is not a firejail sandbox\n"); | ||
59 | exit(1); | ||
60 | } | ||
57 | free(comm); | 61 | free(comm); |
58 | } | 62 | } |
63 | else | ||
64 | errExit("/proc/PID/comm"); | ||
59 | 65 | ||
60 | // check privileges for non-root users | 66 | // check privileges for non-root users |
61 | uid_t uid = getuid(); | 67 | uid_t uid = getuid(); |