From: Chris Howey Date: Sun, 26 May 2013 13:53:04 +0000 (-0500) Subject: No "chmod" executable on Windows. X-Git-Tag: v1.7.2~363 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=6985633bd4bc3006d21ca168623f988956c42c5e;p=fsnotify.git No "chmod" executable on Windows. --- diff --git a/fsnotify_test.go b/fsnotify_test.go index 3932e12..4d3d918 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -940,8 +940,7 @@ func TestFsnotifyAttrib(t *testing.T) { t.Fatalf("Watcher.Watch() failed: %s", err) } - cmd := exec.Command("chmod", "0700", testFile) - err = cmd.Run() + err = os.Chmod(testFile, 0700) if err != nil { t.Fatalf("chmod failed: %s", err) }