Updated for FreeBSD
This commit is contained in:
parent
f19b0b0a7e
commit
03cae38992
@ -188,6 +188,7 @@ void add_path(char *path)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
struct statfs *mntbuf;
|
struct statfs *mntbuf;
|
||||||
|
long mntsize;
|
||||||
int i;
|
int i;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -231,8 +232,8 @@ void add_path(char *path)
|
|||||||
for (i = 0; i < mntsize; i++) {
|
for (i = 0; i < mntsize; i++) {
|
||||||
Syslog('d', "Check fs %s", mntbuf[i].f_mntonname);
|
Syslog('d', "Check fs %s", mntbuf[i].f_mntonname);
|
||||||
if (strncmp(mntbuf[i].f_mntonname, path, strlen(mntbuf[i].f_mntonname)) == 0) {
|
if (strncmp(mntbuf[i].f_mntonname, path, strlen(mntbuf[i].f_mntonname)) == 0) {
|
||||||
Syslog('d', "Found fs %s", fs);
|
Syslog('d', "Found fs %s", mntbuf[i].f_mntonname);
|
||||||
sprintf(fsname, "%s", fs);
|
sprintf(fsname, "%s", mntbuf[i].f_mntonname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Syslog('d', "Should be on \"%s\"", fsname);
|
Syslog('d', "Should be on \"%s\"", fsname);
|
||||||
|
Reference in New Issue
Block a user