From 5a6860adbf55d01969b525c811cf710c6047b38a Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 21 Jan 2022 17:00:55 +0100 Subject: [PATCH] Correct typo in check for null device Signed-off-by: Evan Lezar --- cmd/nvidia-container-runtime.experimental/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nvidia-container-runtime.experimental/main.go b/cmd/nvidia-container-runtime.experimental/main.go index 7452f07d..f1e244bc 100644 --- a/cmd/nvidia-container-runtime.experimental/main.go +++ b/cmd/nvidia-container-runtime.experimental/main.go @@ -45,7 +45,7 @@ func main() { os.Exit(1) } - if cfg.DebugFilePath != "" && cfg.DebugFilePath != "/dev/nul" { + if cfg.DebugFilePath != "" && cfg.DebugFilePath != "/dev/null" { logFile, err := os.OpenFile(cfg.DebugFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { logger.Errorf("Error opening debug log file: %v", err)