Module Name:    src
Committed By:   stacktic
Date:           Fri Jun 19 12:55:45 UTC 2009

Modified Files:
        src/sbin/mount: fattr.c

Log Message:
Fixed a_mask to actually use its argument


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sbin/mount/fattr.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/fattr.c
diff -u src/sbin/mount/fattr.c:1.9 src/sbin/mount/fattr.c:1.10
--- src/sbin/mount/fattr.c:1.9	Tue Aug  5 20:57:45 2008
+++ src/sbin/mount/fattr.c	Fri Jun 19 12:55:45 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: fattr.c,v 1.9 2008/08/05 20:57:45 pooka Exp $ */
+/* $NetBSD: fattr.c,v 1.10 2009/06/19 12:55:45 stacktic Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fattr.c,v 1.9 2008/08/05 20:57:45 pooka Exp $");
+__RCSID("$NetBSD: fattr.c,v 1.10 2009/06/19 12:55:45 stacktic Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -82,7 +82,7 @@
 	int rv;
 	char *ep;
 
-	rv = strtol(optarg, &ep, 8);
+	rv = strtol(s, &ep, 8);
 	if (s == ep || *ep || rv < 0)
 		errx(1, "invalid file mode: %s", s);
 	return rv;

Reply via email to