Commit b938fedf authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: fix null pointer dereference for Utimens on darwin.

parent 7f5e9e55
......@@ -77,7 +77,7 @@ func (f *loopbackFile) Utimens(a *time.Time, m *time.Time) fuse.Status {
if m == nil {
tv[1].Usec = _UTIME_OMIT
} else {
n := a.UnixNano()
n := m.UnixNano()
tv[1] = syscall.NsecToTimeval(n)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment