]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/godoc: use *goroot as base path in zip file
authorAndrew Gerrand <adg@golang.org>
Thu, 15 Mar 2012 00:31:16 +0000 (11:31 +1100)
committerAndrew Gerrand <adg@golang.org>
Thu, 15 Mar 2012 00:31:16 +0000 (11:31 +1100)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5781069

src/cmd/godoc/appinit.go

index 6bffedb5c0b0d9e1144f4f81fb11452a4db69dad..4096a4f224a9047b77f346e357aaa59657561720 100644 (file)
@@ -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()