We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07bbb45 commit 3b686fdCopy full SHA for 3b686fd
cmd/debiman/main.go
@@ -197,6 +197,14 @@ func main() {
197
// All of our .so references are relative to *servingDir. For
198
// mandoc(1) to find the files, we need to change the working
199
// directory now.
200
+ //
201
+ // We turn *servingDir into an absolute path so that it still refers to the
202
+ // same location even after our os.Chdir() call (see issue #152).
203
+ abs, err := filepath.Abs(*servingDir)
204
+ if err != nil {
205
+ log.Fatal(err)
206
+ }
207
+ *servingDir = abs
208
if err := os.Chdir(*servingDir); err != nil {
209
log.Fatal(err)
210
}
0 commit comments