]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix read_mtab() on MacOS
authorEric Bollengier <eric@baculasystems.com>
Tue, 6 Jul 2021 09:58:49 +0000 (11:58 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:02 +0000 (09:03 +0100)
bacula/src/findlib/fstype.c

index 1a517e40f07bc4d8d358ed9b6d64385037eb4972..2f6b80b390d0f8fabb5f2cbe73f509d3ed0fc783 100644 (file)
@@ -603,8 +603,12 @@ bool read_mtab(mtab_handler_t *mtab_handler, void *user_ctx)
          if (stat(mntinfo->f_mntonname, &st) < 0) {
             continue;
          }
-         mtab_handler(user_ctx, &st, mntinfo->f_mntfromname,
-            mntinfo->f_mntonname, mntinfo->f_fstypename, NULL);
+
+         mtab_handler(user_ctx, &st,
+                      mntinfo->f_fstypename,  // fstype
+                      mntinfo->f_mntonname,   // mountpoint
+                      NULL,                   // mntopts
+                      mntinfo->f_mntfromname); // device
          mntinfo++;
       }
    }