* [PATCH] text-based mount command: Fixed typo in po_rightmost
@ 2009-01-31 19:24 Steve Dickson
0 siblings, 0 replies; only message in thread
From: Steve Dickson @ 2009-01-31 19:24 UTC (permalink / raw)
To: linux-nfs
Fixed typo in po_rightmost() that was cause options like nolock,
bg, udp, tcp, proto, v2, v3, vers, nfsvers to either be
ignored or interrupted
Signed-off-by: Steve Dickson <steved@redhat.com>
diff --git a/utils/mount/parse_opt.c b/utils/mount/parse_opt.c
index 4934508..280f3e5 100644
--- a/utils/mount/parse_opt.c
+++ b/utils/mount/parse_opt.c
@@ -448,7 +448,7 @@ unsigned int po_rightmost(struct mount_options *options, const char *keys[])
for (option = options->tail; option; option = option->prev) {
for (i = 0; keys[i] != NULL; i++)
if (strcmp(option->keyword, keys[i]) == 0)
- return i;
+ return i+1;
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-31 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 19:24 [PATCH] text-based mount command: Fixed typo in po_rightmost Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox