mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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 <rodrigoca@microsoft.com>
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user