There was an error while loading. Please reload this page.
1 parent c2ddc83 commit ca47b4cCopy full SHA for ca47b4c
1 file changed
cmd/syncthing/monitor.go
@@ -418,10 +418,10 @@ func (f *autoclosedFile) closerLoop() {
418
func childEnv() []string {
419
var env []string
420
for _, str := range os.Environ() {
421
- if strings.HasPrefix("STNORESTART=", str) {
+ if strings.HasPrefix(str, "STNORESTART=") {
422
continue
423
}
424
- if strings.HasPrefix("STMONITORED=", str) {
+ if strings.HasPrefix(str, "STMONITORED=") {
425
426
427
env = append(env, str)
0 commit comments