aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 3dc959f..c5fc3d7 100644
--- a/main.go
+++ b/main.go
@@ -126,7 +126,7 @@ func main() {
args := parseCliOpts()
// Fork a child into the background if "-f" is not set AND we are mounting
// a filesystem. The child will do all the work.
- if !args.foreground && flagSet.NArg() == 2 {
+ if !args.fg && flagSet.NArg() == 2 {
ret := forkChild()
os.Exit(ret)
}