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

Don't use privilegedUnmount().

syscall.Umount() does not update /etc/mtab.
parent e09493f4
......@@ -105,9 +105,6 @@ func privilegedUnmount(mountPoint string) os.Error {
}
func unmount(mountPoint string) (err os.Error) {
if os.Geteuid() == 0 {
return privilegedUnmount(mountPoint)
}
dir, _ := filepath.Split(mountPoint)
proc, err := os.StartProcess(mountBinary,
[]string{mountBinary, "-u", mountPoint},
......
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