diff options
author | Aleksey Manevich <manevich.aleksey@gmail.com> | 2016-09-29 00:40:53 +0300 |
---|---|---|
committer | Aleksey Manevich <manevich.aleksey@gmail.com> | 2016-09-29 00:41:29 +0300 |
commit | 7671983267e5e31b1bd436ec8e7fdb340b6f7b84 (patch) | |
tree | 858926f639320c761be08c4e4f1d7557741fe689 /src | |
parent | --veth-name option (diff) | |
download | firejail-7671983267e5e31b1bd436ec8e7fdb340b6f7b84.tar.gz firejail-7671983267e5e31b1bd436ec8e7fdb340b6f7b84.tar.zst firejail-7671983267e5e31b1bd436ec8e7fdb340b6f7b84.zip |
if .Xauthority is symlink, skip and warn
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_home.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c index 064340613..63d5a1c5e 100644 --- a/src/firejail/fs_home.c +++ b/src/firejail/fs_home.c | |||
@@ -114,8 +114,8 @@ static int store_xauthority(void) { | |||
114 | struct stat s; | 114 | struct stat s; |
115 | if (stat(src, &s) == 0) { | 115 | if (stat(src, &s) == 0) { |
116 | if (is_link(src)) { | 116 | if (is_link(src)) { |
117 | fprintf(stderr, "Error: invalid .Xauthority file\n"); | 117 | fprintf(stderr, "Warning: invalid .Xauthority file\n"); |
118 | exit(1); | 118 | return 0; |
119 | } | 119 | } |
120 | 120 | ||
121 | int rv = copy_file(src, dest, -1, -1, 0600); | 121 | int rv = copy_file(src, dest, -1, -1, 0600); |