syscall error

This commit is contained in:
Alex Dadgar 2016-09-02 15:00:46 -07:00
parent eef786dd9d
commit eecef73302
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func (d *AllocDir) createSecretDir(dir string) error {
func (d *AllocDir) removeSecretDir(dir string) error { func (d *AllocDir) removeSecretDir(dir string) error {
if unix.Geteuid() == 0 { if unix.Geteuid() == 0 {
if err := syscall.Unmount(dir, 0); err != nil { if err := syscall.Unmount(dir, 0); err != nil {
return err return os.NewSyscallError("unmount", err)
} }
} }