From f9c51e353fd8b5d5e8bc27979bcfccd647e54b21 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 20 Jan 2020 12:05:08 -0800 Subject: [PATCH] time: remove unnecessary trailing slash from "/etc/" Fixes #36640 Change-Id: I2049b572347da1cb967f5a3f2bc342b310216435 Reviewed-on: https://go-review.googlesource.com/c/go/+/215519 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/time/zoneinfo_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/zoneinfo_unix.go b/src/time/zoneinfo_unix.go index 74aa5212a1..d1278cbf2c 100644 --- a/src/time/zoneinfo_unix.go +++ b/src/time/zoneinfo_unix.go @@ -34,7 +34,7 @@ func initLocal() { tz, ok := syscall.Getenv("TZ") switch { case !ok: - z, err := loadLocation("localtime", []string{"/etc/"}) + z, err := loadLocation("localtime", []string{"/etc"}) if err == nil { localLoc = *z localLoc.name = "Local" -- 2.50.0