From: Prem Karat <prem.karat@linux.vnet.ibm.com>
To: linux-nfs@vger.kernel.org
Cc: Steve Dickson <SteveD@redhat.com>, NeilBrown <neilb@suse.de>
Subject: [PATCH] nfs-utils: fix for the bug in v1.2.4 that breaks mount.nfs
Date: Thu, 30 Jun 2011 16:26:26 +0530 [thread overview]
Message-ID: <20110630105626.GB25648@d6fc318.ibm.com> (raw)
commit 30ebf04700654deddbf5f57d95e84ec69cea8610 failed to include these changes that breaks mount.nfs.
mount.nfs would continue to work fine with these changes
Signed-off-by: Prem Karat <prem.karat@linux.vnet.ibm.com>
---
utils/mount/mount.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index 62115bb..eea00af 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -385,14 +385,6 @@ int main(int argc, char *argv[])
if(!strncmp(progname, "umount", strlen("umount")))
exit(nfsumount(argc, argv));
- if (argv[1] && argv[1][0] == '-') {
- if(argv[1][1] == 'V')
- printf("%s ("PACKAGE_STRING")\n", progname);
- else
- mount_usage();
- exit(EX_SUCCESS);
- }
-
if ((argc < 3)) {
mount_usage();
exit(EX_USAGE);
@@ -400,8 +392,7 @@ int main(int argc, char *argv[])
mount_config_init(progname);
- argv[2] = argv[0]; /* so that getopt error messages are correct */
- while ((c = getopt_long(argc - 2, argv + 2, "rvVwfno:hs",
+ while ((c = getopt_long(argc, argv, "rvVwfno:hs",
longopts, NULL)) != -1) {
switch (c) {
case 'r':
--
1.7.4
--
Cheers,
Prem
Linux Technology Center,
IBM Systems & Technology Labs
DID: 41776362
reply other threads:[~2011-06-30 10:56 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=20110630105626.GB25648@d6fc318.ibm.com \
--to=prem.karat@linux.vnet.ibm.com \
--cc=SteveD@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
/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.