patch-2.4.4 linux/fs/smbfs/getopt.c
Next file: linux/fs/smbfs/inode.c
Previous file: linux/fs/romfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Apr 27 14:10:32 2001
- Orig file:
v2.4.3/linux/fs/smbfs/getopt.c
- Orig date:
Mon Aug 14 13:31:10 2000
diff -u --recursive --new-file v2.4.3/linux/fs/smbfs/getopt.c linux/fs/smbfs/getopt.c
@@ -30,8 +30,10 @@
char *val;
int i;
- if ( (token = strsep(options, ",")) == NULL)
- return 0;
+ do {
+ if ((token = strsep(options, ",")) == NULL)
+ return 0;
+ } while (*token == '\0');
*optopt = token;
*optarg = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)