From 03cae38992bbd8b86adeffc286af72b49e529898 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 20 Mar 2004 16:19:27 +0000 Subject: [PATCH] Updated for FreeBSD --- mbtask/taskdisk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mbtask/taskdisk.c b/mbtask/taskdisk.c index eb081bf2..c954e94c 100644 --- a/mbtask/taskdisk.c +++ b/mbtask/taskdisk.c @@ -188,6 +188,7 @@ void add_path(char *path) FILE *fp; #elif defined(__FreeBSD__) || defined(__NetBSD__) struct statfs *mntbuf; + long mntsize; int i; #endif @@ -231,8 +232,8 @@ void add_path(char *path) for (i = 0; i < mntsize; i++) { Syslog('d', "Check fs %s", mntbuf[i].f_mntonname); if (strncmp(mntbuf[i].f_mntonname, path, strlen(mntbuf[i].f_mntonname)) == 0) { - Syslog('d', "Found fs %s", fs); - sprintf(fsname, "%s", fs); + Syslog('d', "Found fs %s", mntbuf[i].f_mntonname); + sprintf(fsname, "%s", mntbuf[i].f_mntonname); } } Syslog('d', "Should be on \"%s\"", fsname);