Skip to content

Commit 452e22d

Browse files
committed
Merge branch 'master' of https://github.com/cretz/bine
2 parents 7266940 + 62912bf commit 452e22d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

process/embedded/tor-0.3.5/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/xz/dist/lib -llzma
2626
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/zlib/dist/lib -lz
2727
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/openssl/dist/lib -lssl -lcrypto
28-
#cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 -liphlpapi
28+
#cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 -liphlpapi -Wl,-Bstatic -lpthread
2929
#cgo !windows LDFLAGS: -lm
3030
3131
#include <stdlib.h>

tor/tor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func Start(ctx context.Context, conf *StartConf) (*Tor, error) {
161161
}
162162
tor.Debugf("Created temp data directory at: %v", tor.DataDir)
163163
tor.DeleteDataDirOnClose = !conf.RetainTempDataDir
164-
} else if err := os.MkdirAll(tor.DataDir, 0600); err != nil {
164+
} else if err := os.MkdirAll(tor.DataDir, 0700); err != nil {
165165
return nil, fmt.Errorf("Unable to create data dir: %v", err)
166166
}
167167

0 commit comments

Comments
 (0)