diff options
author | 2017-01-14 09:43:06 -0500 | |
---|---|---|
committer | 2017-01-14 09:43:06 -0500 | |
commit | 15f43d3a6972128b485517192cb5525e4e578028 (patch) | |
tree | 340c0af15c019a9b705f3a8907ea7523a5515dc7 | |
parent | local customization (diff) | |
download | firejail-15f43d3a6972128b485517192cb5525e4e578028.tar.gz firejail-15f43d3a6972128b485517192cb5525e4e578028.tar.zst firejail-15f43d3a6972128b485517192cb5525e4e578028.zip |
fix ASSERT_PERMS_FD macro
-rw-r--r-- | src/firejail/firejail.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/firejail.h b/src/firejail/firejail.h index 586cfd65e..722d5c05e 100644 --- a/src/firejail/firejail.h +++ b/src/firejail/firejail.h | |||
@@ -105,7 +105,7 @@ | |||
105 | #define ASSERT_PERMS_FD(fd, uid, gid, mode) \ | 105 | #define ASSERT_PERMS_FD(fd, uid, gid, mode) \ |
106 | do { \ | 106 | do { \ |
107 | struct stat s;\ | 107 | struct stat s;\ |
108 | if (stat(fd, &s) == -1) errExit("stat");\ | 108 | if (fstat(fd, &s) == -1) errExit("fstat");\ |
109 | assert(s.st_uid == uid);\ | 109 | assert(s.st_uid == uid);\ |
110 | assert(s.st_gid == gid);\ | 110 | assert(s.st_gid == gid);\ |
111 | assert((s.st_mode & 07777) == (mode));\ | 111 | assert((s.st_mode & 07777) == (mode));\ |