From 181dc14cd63dd364efaa4d6f7a6af7f3892cc83a Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 15 Mar 2012 11:31:16 +1100 Subject: [PATCH] cmd/godoc: use *goroot as base path in zip file R=golang-dev, r CC=golang-dev https://golang.org/cl/5781069 --- src/cmd/godoc/appinit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/godoc/appinit.go b/src/cmd/godoc/appinit.go index 6bffedb5c0..4096a4f224 100644 --- a/src/cmd/godoc/appinit.go +++ b/src/cmd/godoc/appinit.go @@ -42,7 +42,7 @@ func init() { log.Fatalf("%s: %s\n", zipfile, err) } // rc is never closed (app running forever) - fs.Bind("/", NewZipFS(rc, zipFilename), "/", bindReplace) + fs.Bind("/", NewZipFS(rc, zipFilename), *goroot, bindReplace) // initialize http handlers readTemplates()