From 6f9de0a0603c190f7b669f11d4566901b050cbc5 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 18 Jul 2016 15:22:02 -0700 Subject: [PATCH] runtimetest: Fix check for device node Signed-off-by: Mrunal Patel --- cmd/runtimetest/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/runtimetest/main.go b/cmd/runtimetest/main.go index 162c159a4..007904ef9 100644 --- a/cmd/runtimetest/main.go +++ b/cmd/runtimetest/main.go @@ -283,7 +283,7 @@ func validateDefaultDevices(spec *rspec.Spec) error { return err } } else { - if fi.Mode() != os.ModeDevice { + if fi.Mode()&os.ModeDevice != os.ModeDevice { return fmt.Errorf("file %v is not a device as expected", device) } }