diff options
author | smitsohu <smitsohu@gmail.com> | 2019-05-16 22:43:10 +0200 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2019-05-16 22:43:10 +0200 |
commit | 203e34db60e9200a53708c425868a041e32eaf0d (patch) | |
tree | bdcbbc4f83cedf251aab40e7a2cfe04086d26990 /src/firejail/fs_home.c | |
parent | Merge pull request #2691 from curiosity-seeker/master (diff) | |
download | firejail-203e34db60e9200a53708c425868a041e32eaf0d.tar.gz firejail-203e34db60e9200a53708c425868a041e32eaf0d.tar.zst firejail-203e34db60e9200a53708c425868a041e32eaf0d.zip |
glibc missing O_PATH definition on CentOS 6 - #2696
Diffstat (limited to 'src/firejail/fs_home.c')
-rw-r--r-- | src/firejail/fs_home.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c index e35bf073d..b44d09acc 100644 --- a/src/firejail/fs_home.c +++ b/src/firejail/fs_home.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/limits.h> | 22 | #include <linux/limits.h> |
23 | #include <glob.h> | 23 | #include <glob.h> |
24 | #include <dirent.h> | 24 | #include <dirent.h> |
25 | #include <fcntl.h> | ||
26 | #include <errno.h> | 25 | #include <errno.h> |
27 | #include <sys/stat.h> | 26 | #include <sys/stat.h> |
28 | #include <sys/types.h> | 27 | #include <sys/types.h> |
@@ -31,6 +30,11 @@ | |||
31 | #include <grp.h> | 30 | #include <grp.h> |
32 | //#include <ftw.h> | 31 | //#include <ftw.h> |
33 | 32 | ||
33 | #include <fcntl.h> | ||
34 | #ifndef O_PATH | ||
35 | # define O_PATH 010000000 | ||
36 | #endif | ||
37 | |||
34 | static void skel(const char *homedir, uid_t u, gid_t g) { | 38 | static void skel(const char *homedir, uid_t u, gid_t g) { |
35 | char *fname; | 39 | char *fname; |
36 | 40 | ||