patch-2.4.18 linux/fs/smbfs/getopt.c
Next file: linux/fs/smbfs/getopt.h
Previous file: linux/fs/smbfs/file.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Jan 14 18:10:06 2002
-  Orig file: 
linux.orig/fs/smbfs/getopt.c
-  Orig date: 
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/fs/smbfs/getopt.c linux/fs/smbfs/getopt.c
@@ -46,7 +46,7 @@
 
 	for (i = 0; opts[i].name != NULL; i++) {
 		if (!strcmp(opts[i].name, token)) {
-			if (opts[i].has_arg && (!val || !*val)) {
+			if (!opts[i].flag && (!val || !*val)) {
 				printk("%s: the %s option requires an argument\n",
 				       caller, token);
 				return -1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)