From 882e5fe3bab0a27005f83d954c7dd43fbc00d8b3 Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Tue, 1 Aug 2023 16:36:18 +0200 Subject: [PATCH] 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 --- contrib/cmd/fs-idmap/fs-idmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/cmd/fs-idmap/fs-idmap.go b/contrib/cmd/fs-idmap/fs-idmap.go index 45f171c69..5879c74e7 100644 --- a/contrib/cmd/fs-idmap/fs-idmap.go +++ b/contrib/cmd/fs-idmap/fs-idmap.go @@ -11,7 +11,7 @@ import ( ) func main() { - if len(os.Args) < 2 { + if len(os.Args) != 2 { log.Fatalf("usage: %s path_to_mount_set_attr", os.Args[0]) }