Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
go-fuse
Commits
c8abd57b
Commit
c8abd57b
authored
13 years ago
by
Han-Wen Nienhuys
Browse files
Options
Download
Email Patches
Plain Diff
Don't use privilegedUnmount().
syscall.Umount() does not update /etc/mtab.
parent
e09493f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
fuse/mount.go
fuse/mount.go
+0
-3
No files found.
fuse/mount.go
View file @
c8abd57b
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment