Skip to content

Commit

Permalink
syscall error
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Sep 2, 2016
1 parent 4bae547 commit afee832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/allocdir/alloc_dir_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (d *AllocDir) createSecretDir(dir string) error {
func (d *AllocDir) removeSecretDir(dir string) error {
if unix.Geteuid() == 0 {
if err := syscall.Unmount(dir, 0); err != nil {
return err
return os.NewSyscallError("unmount", err)
}
}

Expand Down

0 comments on commit afee832

Please sign in to comment.