Skip to contentSkip to conversation

xfs_quota: fix missing break after foreign_allowed option

PATCH In review Zorro Lang 3 participants 3 messages Aug 26, 2016

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 xfs_quota: fix missing break after foreign_allowed option

New quota "-f" has been brought in by:

29647c8 xfs_quota: add capabilities for use on non-XFS filesystems

But Coverity Scan find a missing break in quota/init.c: init() function.

---
 quota/init.c | 1 +
 1 file changed, 1 insertion(+)
quota/init.c +1 -0
index 44be322..2c18c8b 100644
@@ -153,6 +153,7 @@ init(
 			break;
 		case 'f':
 			foreign_allowed = true;
+			break;
 		case 't':
 			mtab_file = optarg;
 			break;
Signature · 6 lines
2.7.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Zorro Lang

New quota "-f" has been brought in by:

29647c8 xfs_quota: add capabilities for use on non-XFS filesystems

But Coverity Scan find a missing break in quota/init.c: init() function.

Quoted 10 lines
---
 quota/init.c | 1 +
 1 file changed, 1 insertion(+)
quota/init.c +0 -0
index 44be322..2c18c8b 100644

quota/init.c init( · line 159

Quoted 7 lines
quota/init.c +1 -0
@@ -153,6 +153,7 @@ init(
 			break;
 		case 'f':
 			foreign_allowed = true;
+			break;
 		case 't':
 			mtab_file = optarg;
 			break;

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by on v1 1/1
#2 lore raw
In reply to Zorro Lang
Quoted 8 lines · Zorro Lang

New quota "-f" has been brought in by:

29647c8 xfs_quota: add capabilities for use on non-XFS filesystems

But Coverity Scan find a missing break in quota/init.c: init() function.

Sorry about that.
Thanks for the patch, Zorro.

Quoted 23 lines
---
 quota/init.c | 1 +
 1 file changed, 1 insertion(+)
quota/init.c +1 -0
index 44be322..2c18c8b 100644
@@ -153,6 +153,7 @@ init(
 			break;
 		case 'f':
 			foreign_allowed = true;
+			break;
 		case 't':
 			mtab_file = optarg;
 			break;
Signature · 6 lines
2.7.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs