Fixed unmount_std.go.

geesefs-0-30-9
Aaron Jacobs 2015-07-24 16:21:18 +10:00
parent 31b79aae73
commit c7757fe840
1 changed files with 6 additions and 5 deletions

View File

@ -1,17 +1,18 @@
// +build !linux // +build !linux
package fuseshim package fuse
import ( import (
"os" "os"
"syscall" "syscall"
) )
func unmount(dir string) error { func unmount(dir string) (err error) {
err := syscall.Unmount(dir, 0) err = syscall.Unmount(dir, 0)
if err != nil { if err != nil {
err = &os.PathError{Op: "unmount", Path: dir, Err: err} err = &os.PathError{Op: "unmount", Path: dir, Err: err}
return err return
} }
return nil
return
} }