aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/x11.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-08-25 10:29:16 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2018-08-25 10:29:16 +0200
commitda76c64dcdf7f98e94a33fa74e1e0050e384ce5c (patch)
treed38487546b1e3540aac6db15a2f2ba665d13874d /src/firejail/x11.c
parentAdd python program to more easily debug profiles (diff)
downloadfirejail-da76c64dcdf7f98e94a33fa74e1e0050e384ce5c.tar.gz
firejail-da76c64dcdf7f98e94a33fa74e1e0050e384ce5c.tar.zst
firejail-da76c64dcdf7f98e94a33fa74e1e0050e384ce5c.zip
cleanup, small improvements
Diffstat (limited to 'src/firejail/x11.c')
-rw-r--r--src/firejail/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c
index e40ca0f05..7d02701c9 100644
--- a/src/firejail/x11.c
+++ b/src/firejail/x11.c
@@ -1168,7 +1168,7 @@ void x11_xorg(void) {
1168 if (asprintf(&dest, "%s/.Xauthority", cfg.homedir) == -1) 1168 if (asprintf(&dest, "%s/.Xauthority", cfg.homedir) == -1)
1169 errExit("asprintf"); 1169 errExit("asprintf");
1170 if (lstat(dest, &s) == -1) 1170 if (lstat(dest, &s) == -1)
1171 touch_file_as_user(dest, getuid(), getgid(), 0600); 1171 touch_file_as_user(dest, 0600);
1172 1172
1173 // get a file descriptor for .Xauthority 1173 // get a file descriptor for .Xauthority
1174 fd = safe_fd(dest, O_PATH|O_NOFOLLOW|O_CLOEXEC); 1174 fd = safe_fd(dest, O_PATH|O_NOFOLLOW|O_CLOEXEC);