All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH] text-based mount command: Fixed typo in  po_rightmost
Date: Sat, 31 Jan 2009 14:24:37 -0500	[thread overview]
Message-ID: <4984A575.3000207@RedHat.com> (raw)

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;
 		}
 	}
 

                 reply	other threads:[~2009-01-31 19:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4984A575.3000207@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.