Module Name:    src
Committed By:   riastradh
Date:           Sat May 21 20:05:02 UTC 2011

Modified Files:
        src/sbin/mount_ptyfs: mount_ptyfs.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sbin/mount_ptyfs/mount_ptyfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/mount_ptyfs/mount_ptyfs.c
diff -u src/sbin/mount_ptyfs/mount_ptyfs.c:1.10 src/sbin/mount_ptyfs/mount_ptyfs.c:1.11
--- src/sbin/mount_ptyfs/mount_ptyfs.c:1.10	Sun Mar 15 16:47:45 2009
+++ src/sbin/mount_ptyfs/mount_ptyfs.c	Sat May 21 20:05:02 2011
@@ -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,

Reply via email to