summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2018-05-24 18:09:17 +0000
committerChristos Zoulas <christos@zoulas.com>2018-05-24 18:09:17 +0000
commite2adab1456c2bd8b005ddf8ed71540a37d05cb08 (patch)
tree91e57032ad09e7b8f470aefe586a502b2de80f51 /src/file.h
parent9109a696f3289ba00eaa222fd432755ec4287e28 (diff)
downloadfile-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file.h b/src/file.h
index 37870d12..57a84a80 100644
--- a/src/file.h
+++ b/src/file.h
@@ -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 {