From 891a3b4c8a02edc6b7c2163bce8827a70deab285 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 16 Oct 2016 20:20:00 +0200 Subject: fusefrontend: Utimens: one more band-aid Revert once https://github.com/hanwen/go-fuse/pull/131 is merged. --- internal/fusefrontend/file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/fusefrontend') diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go index 796aee8..b625f6c 100644 --- a/internal/fusefrontend/file.go +++ b/internal/fusefrontend/file.go @@ -391,9 +391,10 @@ func (f *file) GetAttr(a *fuse.Attr) fuse.Status { const BrokenAtimeOmit = true func (f *file) Utimens(a *time.Time, m *time.Time) fuse.Status { - if a == nil && BrokenAtimeOmit { + if BrokenAtimeOmit { // Band-aid for a nil pointer crash, described in // https://github.com/rfjakob/gocryptfs/issues/48 + // Also band-aid for "mtime gets set to atime". // // TODO drop this once https://github.com/hanwen/go-fuse/pull/131 is // merged -- cgit v1.2.3