Merge branch 'fix-dev-null-typo' into 'experimental'

Correct typo in check for null device

See merge request nvidia/container-toolkit/container-toolkit!101
This commit is contained in:
Evan Lezar 2022-01-25 11:03:00 +00:00
commit 7ee81e91de

View File

@ -45,7 +45,7 @@ func main() {
os.Exit(1) 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) logFile, err := os.OpenFile(cfg.DebugFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil { if err != nil {
logger.Errorf("Error opening debug log file: %v", err) logger.Errorf("Error opening debug log file: %v", err)