Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5488e
)
- don't crash if there are no options
author
rread
<rread>
Thu, 13 Nov 2003 19:22:32 +0000
(19:22 +0000)
committer
rread
<rread>
Thu, 13 Nov 2003 19:22:32 +0000
(19:22 +0000)
lustre/utils/llmount.c
patch
|
blob
|
history
diff --git
a/lustre/utils/llmount.c
b/lustre/utils/llmount.c
index
1f5475d
..
320ced4
100644
(file)
--- a/
lustre/utils/llmount.c
+++ b/
lustre/utils/llmount.c
@@
-74,7
+74,7
@@
parse_options(char * options, struct lustre_mount_data *lmd)
int val;
char *opt;
char * opteq;
-
+
/* parsing ideas here taken from util-linux/mount/nfsmount.c */
for (opt = strtok(options, ","); opt; opt = strtok(NULL, ",")) {
if ((opteq = strchr(opt, '='))) {
@@
-218,7
+218,7
@@
main(int argc, char * const argv[])
{
char * source = argv[1];
char * target = argv[2];
- char * options =
NULL
;
+ char * options =
""
;
int opt;
int i;
struct lustre_mount_data lmd;