Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/mount_ptyfs Make `mount_ptyfs -c' actually work.
details: https://anonhg.NetBSD.org/src/rev/687fe43df2f9
branches: trunk
changeset: 765211:687fe43df2f9
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat May 21 20:05:02 2011 +0000
description:
Make `mount_ptyfs -c' actually work.
The ALTF_* are bit masks, not indices, so use 4, not 3, for the one
after 2. Use 0x on all the values to emphasize this.
ok rmind
diffstat:
sbin/mount_ptyfs/mount_ptyfs.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 34ff8b23869b -r 687fe43df2f9 sbin/mount_ptyfs/mount_ptyfs.c
--- a/sbin/mount_ptyfs/mount_ptyfs.c Sat May 21 19:06:44 2011 +0000
+++ b/sbin/mount_ptyfs/mount_ptyfs.c Sat May 21 20:05:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_ptyfs.c,v 1.10 2009/03/15 16:47:45 christos Exp $ */
+/* $NetBSD: mount_ptyfs.c,v 1.11 2011/05/21 20:05:02 riastradh Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@@ -77,7 +77,7 @@
#if 0
static char sccsid[] = "@(#)mount_ptyfs.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: mount_ptyfs.c,v 1.10 2009/03/15 16:47:45 christos Exp $");
+__RCSID("$NetBSD: mount_ptyfs.c,v 1.11 2011/05/21 20:05:02 riastradh Exp $");
#endif
#endif /* not lint */
@@ -98,9 +98,9 @@
#include <mntopts.h>
-#define ALTF_GROUP 1
-#define ALTF_MODE 2
-#define ALTF_CHROOT 3
+#define ALTF_GROUP 0x1
+#define ALTF_MODE 0x2
+#define ALTF_CHROOT 0x4
static const struct mntopt mopts[] = {
MOPT_STDOPTS,
Home |
Main Index |
Thread Index |
Old Index