mount: call hotplug mount scripts only on success
[project/mountd.git] / fs.c
diff --git a/fs.c b/fs.c
index fee6608ff364045d55e1375d00ab5cbbae99fda4..d9bcc63cb9891d157df30cd58c641a7d7c3f56e4 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -153,8 +153,8 @@ static int detect_hfsplus(int fd)
        {
                if(!journal)
                        ret = HFSPLUS;
-       //      else
-       //              ret = HFSPLUSJOURNAL;
+               else
+                       ret = HFSPLUSJOURNAL;
        }
 out:
        free(buffer);
@@ -191,7 +191,7 @@ out:
        return ret;
 }
 
-dfunc funcs[] = {
+static dfunc funcs[] = {
        detect_ext23,
        detect_exfat,
        detect_fat,