diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-04-18 22:16:25 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-04-18 22:16:25 +0000 |
commit | 43e116b7c3a8173786c161807ae5c036eaf6bb4e (patch) | |
tree | 535d2e471f07af3e3160a450a6ecd4539ef65d72 /sbin/mount_msdos/mount_msdos.c | |
parent | 59eafc15443d17f49106e364f0e04f3f9a8385de (diff) |
support for making directories executable if readable.
to use this, you want to run mount_msdos with -m 0644 -x or so.
ok millert@
Diffstat (limited to 'sbin/mount_msdos/mount_msdos.c')
-rw-r--r-- | sbin/mount_msdos/mount_msdos.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c index 80c42abf239..d7aa882386c 100644 --- a/sbin/mount_msdos/mount_msdos.c +++ b/sbin/mount_msdos/mount_msdos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_msdos.c,v 1.14 2002/04/23 18:54:12 espie Exp $ */ +/* $OpenBSD: mount_msdos.c,v 1.15 2003/04/18 22:16:24 tedu Exp $ */ /* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */ /* @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.14 2002/04/23 18:54:12 espie Exp $"; +static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.15 2003/04/18 22:16:24 tedu Exp $"; #endif /* not lint */ #include <sys/cdefs.h> @@ -76,7 +76,7 @@ main(argc, argv) mntflags = set_gid = set_uid = set_mask = 0; (void)memset(&args, '\0', sizeof(args)); - while ((c = getopt(argc, argv, "Gsl9u:g:m:o:")) != -1) { + while ((c = getopt(argc, argv, "Gsl9xu:g:m:o:")) != -1) { switch (c) { case 'G': args.flags |= MSDOSFSMNT_GEMDOSFS; @@ -90,6 +90,9 @@ main(argc, argv) case '9': args.flags |= MSDOSFSMNT_NOWIN95; break; + case 'x': + args.flags |= MSDOSFSMNT_ALLOWDIRX; + break; case 'u': args.uid = a_uid(optarg); set_uid = 1; |