Sat Jan 3 20:11:04 2009 UTC ()
reset args. Add casetrans


(christos)
diff -r1.28 -r1.29 src/sbin/mount_cd9660/mount_cd9660.c

cvs diff -r1.28 -r1.29 src/sbin/mount_cd9660/mount_cd9660.c (expand / switch to context diff)
--- src/sbin/mount_cd9660/mount_cd9660.c 2008/08/05 20:57:45 1.28
+++ src/sbin/mount_cd9660/mount_cd9660.c 2009/01/03 20:11:04 1.29
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_cd9660.c,v 1.28 2008/08/05 20:57:45 pooka Exp $	*/
+/*	$NetBSD: mount_cd9660.c,v 1.29 2009/01/03 20:11:04 christos Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993, 1994
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)mount_cd9660.c	8.7 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: mount_cd9660.c,v 1.28 2008/08/05 20:57:45 pooka Exp $");
+__RCSID("$NetBSD: mount_cd9660.c,v 1.29 2009/01/03 20:11:04 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -74,6 +74,7 @@
 	{ "extatt", 0, ISOFSMNT_EXTATT, 1 },
 	{ "gens", 0, ISOFSMNT_GENS, 1 },
 	{ "maplcase", 1, ISOFSMNT_NOCASETRANS, 1 },
+	{ "casetrans", 1, ISOFSMNT_NOCASETRANS, 1 },
 	{ "nrr", 0, ISOFSMNT_NORRIP, 1 },
 	{ "rrip", 1, ISOFSMNT_NORRIP, 1 },
 	{ "joliet", 1, ISOFSMNT_NOJOLIET, 1 },
@@ -102,8 +103,9 @@
 	mntoptparse_t mp;
 	char *dev, *dir;
 
-	*mntflags = opts = 0;
 	memset(args, 0, sizeof(*args));
+	*mntflags = opts = 0;
+	optind = optreset = 1;
 	while ((ch = getopt(argc, argv, "egijo:r")) != -1)
 		switch (ch) {
 		case 'e':