diff options
| author | pooka <pooka@NetBSD.org> | 2009-02-23 19:47:58 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2009-02-23 19:47:58 +0000 |
| commit | 3f2d5fc9adf5a29e68c6f87d1a07d3ffc58f8fd1 (patch) | |
| tree | 9c70d615d71dec91a70c42949120251be3499500 /sbin/mount_procfs | |
| parent | 72d8b8b6175ec172fe8f6315166f182db3043273 (diff) | |
Default to -o linux. This prevents programs from not working just
because the -o linux flag was not supplied, i.e. it is the sensible
default. People who absolutely do not want the extra files in
their /proc for whatever aesthetic reason (it's not like they
consume any resources) can do -o nolinux.
Diffstat (limited to 'sbin/mount_procfs')
| -rw-r--r-- | sbin/mount_procfs/mount_procfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/mount_procfs/mount_procfs.c b/sbin/mount_procfs/mount_procfs.c index d73882955c2..a071773332a 100644 --- a/sbin/mount_procfs/mount_procfs.c +++ b/sbin/mount_procfs/mount_procfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: mount_procfs.c,v 1.22 2008/07/20 01:20:22 lukem Exp $ */ +/* $NetBSD: mount_procfs.c,v 1.23 2009/02/23 19:47:58 pooka Exp $ */ /* * Copyright (c) 1992, 1993, 1994 @@ -77,7 +77,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993, 1994\ #if 0 static char sccsid[] = "@(#)mount_procfs.c 8.4 (Berkeley) 4/26/95"; #else -__RCSID("$NetBSD: mount_procfs.c,v 1.22 2008/07/20 01:20:22 lukem Exp $"); +__RCSID("$NetBSD: mount_procfs.c,v 1.23 2009/02/23 19:47:58 pooka Exp $"); #endif #endif /* not lint */ @@ -121,7 +121,8 @@ mount_procfs(int argc, char *argv[]) char canon_dir[MAXPATHLEN]; mntoptparse_t mp; - mntflags = altflags = 0; + mntflags = 0; + altflags = PROCFSMNT_LINUXCOMPAT; while ((ch = getopt(argc, argv, "o:")) != -1) switch (ch) { case 'o': |
