Skip to content

Commit 882e5fe

Browse files
committed
contrib/fs-idmap: Check exactly 2 args are received
If more args are passed, let's just throw an error. Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 821d001 commit 882e5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/cmd/fs-idmap/fs-idmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func main() {
14-
if len(os.Args) < 2 {
14+
if len(os.Args) != 2 {
1515
log.Fatalf("usage: %s path_to_mount_set_attr", os.Args[0])
1616
}
1717

0 commit comments

Comments
 (0)