diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-12 08:06:49 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-12 08:06:49 -0500 |
commit | 9a066fa40143f587db7c67ea027e98883d1179fa (patch) | |
tree | c11cd310468c2126c9133ca5653c5621914dba45 | |
parent | testing (diff) | |
download | firejail-9a066fa40143f587db7c67ea027e98883d1179fa.tar.gz firejail-9a066fa40143f587db7c67ea027e98883d1179fa.tar.zst firejail-9a066fa40143f587db7c67ea027e98883d1179fa.zip |
fixes
-rw-r--r-- | src/firejail/x11.c | 2 | ||||
-rw-r--r-- | src/lib/common.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c index 54f947c45..2b1121958 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c | |||
@@ -714,7 +714,7 @@ void x11_xorg(void) { | |||
714 | // move the temporary file in RUN_XAUTHORITY_SEC_FILE in order to have it deleted | 714 | // move the temporary file in RUN_XAUTHORITY_SEC_FILE in order to have it deleted |
715 | // automatically when the sandbox is closed | 715 | // automatically when the sandbox is closed |
716 | if (copy_file(tmpfname, RUN_XAUTHORITY_SEC_FILE, getuid(), getgid(), 0600)) { | 716 | if (copy_file(tmpfname, RUN_XAUTHORITY_SEC_FILE, getuid(), getgid(), 0600)) { |
717 | fprintf(stderr, "asdfdsfError: cannot create the new .Xauthority file\n"); | 717 | fprintf(stderr, "Error: cannot create the new .Xauthority file\n"); |
718 | exit(1); | 718 | exit(1); |
719 | } | 719 | } |
720 | if (chown(RUN_XAUTHORITY_SEC_FILE, getuid(), getgid()) == -1) | 720 | if (chown(RUN_XAUTHORITY_SEC_FILE, getuid(), getgid()) == -1) |
diff --git a/src/lib/common.c b/src/lib/common.c index ea0ab781a..2f2340963 100644 --- a/src/lib/common.c +++ b/src/lib/common.c | |||
@@ -278,6 +278,7 @@ int pid_hidepid(void) { | |||
278 | } | 278 | } |
279 | } | 279 | } |
280 | 280 | ||
281 | fclose(fp); | ||
281 | return 0; | 282 | return 0; |
282 | } | 283 | } |
283 | 284 | ||