diff options
author | 2016-09-29 09:49:32 -0400 | |
---|---|---|
committer | 2016-09-29 09:49:32 -0400 | |
commit | ce3d824bb8ed535e9fcd755635ed613feb3cbe97 (patch) | |
tree | 858926f639320c761be08c4e4f1d7557741fe689 /src | |
parent | --veth-name option (diff) | |
parent | if .Xauthority is symlink, skip and warn (diff) | |
download | firejail-ce3d824bb8ed535e9fcd755635ed613feb3cbe97.tar.gz firejail-ce3d824bb8ed535e9fcd755635ed613feb3cbe97.tar.zst firejail-ce3d824bb8ed535e9fcd755635ed613feb3cbe97.zip |
Merge pull request #822 from manevich/xauthority-link
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); |