Fixed diskspace check for FreeBSD

This commit is contained in:
Michiel Broek 2002-02-04 22:11:45 +00:00
parent 3d96ef57b7
commit bd8e5e2527

View File

@ -322,7 +322,7 @@ int diskfree(int needed)
*/ */
if ((strncmp(mntbuf[i].f_fstypename, (char *)"kernfs", 6)) && if ((strncmp(mntbuf[i].f_fstypename, (char *)"kernfs", 6)) &&
(strncmp(mntbuf[i].f_fstypename, (char *)"procfs", 6)) && (strncmp(mntbuf[i].f_fstypename, (char *)"procfs", 6)) &&
(strncmp(mntbuf[i].f_fsfromname, (char *)"/dev/fd", 7)) && (strncmp(mntbuf[i].f_mntfromname, (char *)"/dev/fd", 7)) &&
(strncmp(mntbuf[i].f_fstypename, (char *)"cd9660", 6)) && (strncmp(mntbuf[i].f_fstypename, (char *)"cd9660", 6)) &&
(strncmp(mntbuf[i].f_fstypename, (char *)"msdos", 5)) && (strncmp(mntbuf[i].f_fstypename, (char *)"msdos", 5)) &&
(statfs(mntbuf[i].f_mntonname, &sfs) == 0)) { (statfs(mntbuf[i].f_mntonname, &sfs) == 0)) {