* fhandler.h (executable_states): For now, make dont_care_if_executable

equivalent to not_executable.
* sys/mount.h: Define MOUNT_NOTEXEC.
* path.h (fs_info): New class.
(path_conv): Move fs-specific fields to new 'fs' structure.
(path_conv::update_fs_info): Move to fs_info and rename to just 'update'.
* path.cc (fs_info::update): Ditto.  Return 'true' if successful.
(fillout_mntent): Add ',noexec' to list of reported options.
This commit is contained in:
Christopher Faylor
2002-05-12 03:08:59 +00:00
parent b84621d2e3
commit 29ee580d07
5 changed files with 80 additions and 60 deletions

View File

@ -24,7 +24,9 @@ enum
MOUNT_AUTO = 0x020, /* mount point refers to auto device mount */
MOUNT_CYGWIN_EXEC = 0x040, /* file or directory is or contains a cygwin
executable */
MOUNT_MIXED = 0x080, /* reads are text, writes are binary */
MOUNT_MIXED = 0x080, /* reads are text, writes are binary
not yet implemented */
MOUNT_NOTEXEC = 0x100 /* don't check files for executable magic */
};
int mount (const char *, const char *, unsigned __flags);