diff options
author | Christos Zoulas <christos@zoulas.com> | 2018-05-24 18:09:17 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2018-05-24 18:09:17 +0000 |
commit | e2adab1456c2bd8b005ddf8ed71540a37d05cb08 (patch) | |
tree | 91e57032ad09e7b8f470aefe586a502b2de80f51 /src/file.h | |
parent | 9109a696f3289ba00eaa222fd432755ec4287e28 (diff) | |
download | file-git-e2adab1456c2bd8b005ddf8ed71540a37d05cb08.tar.gz |
a copy of the mode info is now stored in magic_set, and modified by the
elf reader if the file is not "executable", or deemed "executable".
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.192 2018/04/18 01:15:49 christos Exp $ + * @(#)$File: file.h,v 1.193 2018/05/24 18:09:17 christos Exp $ */ #ifndef __file_h__ @@ -413,6 +413,7 @@ struct magic_set { #define EVENT_HAD_ERR 0x01 const char *file; size_t line; /* current magic line number */ + mode_t mode; /* copy of current stat mode */ /* data for searches */ struct { |