Patchwork [04/12] mount: don't make -s (sloppy) imply -v (verbose)

login
register
mail settings
Submitter Chuck Lever
Date Dec. 13, 2011, 10:51 p.m.
Message ID <20111213225131.15402.31180.stgit@degas.1015granger.net>
Download mbox | patch
Permalink /patch/131204/
State Accepted
Headers show

Comments

Chuck Lever - Dec. 13, 2011, 10:51 p.m.
From: Jim Meyering <meyering@redhat.com>

* src/mount/main.c (main): Add a break; stmt between case 's': and
case 'v':.  Spotted by coverity.
Bug introduced with the initial commit of this file: 0520ee72.

Signed-off-by: Jim Meyering <meyering@redhat.com>
---

 src/mount/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/src/mount/main.c b/src/mount/main.c
index b49d152..1efde77 100644
--- a/src/mount/main.c
+++ b/src/mount/main.c
@@ -483,6 +483,7 @@  int main(int argc, char *argv[])
 			break;
 		case 's':
 			sloppy = true;
+			break;
 		case 'v':
 			++verbose;
 			break;