From: Eric Bollengier Date: Tue, 6 Jul 2021 09:58:49 +0000 (+0200) Subject: Fix read_mtab() on MacOS X-Git-Tag: Release-11.3.2~466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a9c6974af8858aacf9713726b559bb4f011588;p=thirdparty%2Fbacula.git Fix read_mtab() on MacOS --- diff --git a/bacula/src/findlib/fstype.c b/bacula/src/findlib/fstype.c index 1a517e40f..2f6b80b39 100644 --- a/bacula/src/findlib/fstype.c +++ b/bacula/src/findlib/fstype.c @@ -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++; } }