aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/opts-std-runtime.c
Commit message (Collapse)AuthorAgeFilesLines
* 1999-10-12 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-121-1/+1
| | | | * opts-std-runtime.c (parse_opt: ARGP_KEY_INIT): Initialize H->noatime.
* 1999-09-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-09-191-8/+6
| | | | | | | | | | | | | | | | | | | | | | | * node-times.c (diskfs_set_node_times): If _diskfs_noatime is set and neither NP->dn_set_mtime nor NP->dn_set_ctime is set, clear NP->dn_set_atime. Short-circuit return if none of dn_set_?time set. * opts-common.c (diskfs_common_options): Include "priv.h". Add aliases --ro/--rw for -r/-w. Add alias --nosuid for --no-suid, --noexec for --no-exec. Move --suid-ok, --exec-ok here from ... * opts-std-runtime.c (std_runtime_options): ... here. (struct parse_hook): New member `noatime'. (set_opts): Use H->noatime to set _diskfs_noatime. (parse_opt): Grok -A and OPT_ATIME to set/clear H->noatime. (OPT_ATIME): New macro. (OPT_SUID_OK, OPT_EXEC_OK): Moved to ... * priv.h: ... here. (diskfs_common_options): Add const to decl. * opts-std-startup.c (parse_startup_opt): Grok OPT_SUID_OK, OPT_EXEC_OK, -A, and OPT_ATIME. * init-init.c (_diskfs_noatime): New variable. (_diskfs_nosuid, _diskfs_noexec): Use uninitialized defns. * opts-append-std.c (diskfs_append_std_options): Add --no-atime if _diskfs_noatime is set.
* 1998-10-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-5/+7
| | | | | | | | * dir-lookup.c (diskfs_S_dir_lookup): Add braces to silence gcc warning. * io-identity.c (diskfs_S_io_identity): Likewise. * opts-append-std.c (diskfs_append_std_options): Likewise. * opts-std-runtime.c (set_opts): Likewise.
* (OPT_EXEC_OK, OPT_SUID_OK):Miles Bader1997-09-191-4/+4
| | | | | | Rename definitions from ..._OPT. (set_opts): Prepend "_diskfs" to uses of NOSUID & NOEXEC.
* Tue Sep 16 14:37:51 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-09-161-1/+17
| | | | | | | | | | | | | | | | | | | | | | | * priv.h (nosuid, noexec): New variables. * init-init.c (nosuid, noexec): New variables, initialized to zero. * file-exec.c (diskfs_S_file_exec): If noexec is on, then prohibit all execution with EACCES. If nosuid is on, then prohibit setuid or setgid execution by silently omitting the uid substitution. * opts-std-startup.c (parse_startup_opt): Implement --no-suid and --no-exec. * opts-common.c (diskfs_common_options): Add --no-suid and --no-exec. * opts-std-runtime.c (struct parse_hook): Add nosuid and noexec. (parse_opt) [cases 'S', 'E', OPT_SUID_OK, OPT_EXEC_OK] Understand --no-suid, --no-exec, --suid-ok, and --exec-ok. (parse_opt) [case ARGP_KEY_INIT]: Initialize H->nosuid and H->noexec. (OPT_SUID_OK, OPT_EXEC_OK): New macros. (std_runtime_options): Add --suid-ok and --exec-ok. (set_opts): Set nosuid and noexec from H->nosuid and H->noexec. * opts-common.c (diskfs_common_options): Rename --nosync to --no-sync; leave --nosync as an alias.
* (parse_opt):Miles Bader1997-07-141-2/+5
| | | | Turn off synchronous mode when setting a sync interval.
* (parents):Miles Bader1996-10-241-2/+2
| | | | | | | | Variable removed. (children): New variable. (diskfs_std_runtime_argp): Use CHILDREN instead of PARENTS.
* (std_runtime_options):Miles Bader1996-09-231-1/+4
| | | | | | Change --remount to --update (keep --remount as a deprecated alias). <argp.h>: New include.
* (parse_opt): Add hair to share arg parsing state between two parsers that useMiles Bader1996-06-261-10/+22
| | | | the same parse_opt function at the same time.
* Initial revisionMiles Bader1996-06-201-0/+122