Always save both the mount flags and the file system type when crossing a

mount point.  From John Kohl.
This commit is contained in:
mycroft 1994-10-18 13:54:25 +00:00
parent 8ae8b4ab29
commit f8825bfb96

View File

@ -36,7 +36,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/
static char rcsid[] = "$Id: function.c,v 1.13 1994/04/14 03:34:16 cgd Exp $";
static char rcsid[] = "$Id: function.c,v 1.14 1994/10/18 13:54:25 mycroft Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -381,9 +381,12 @@ f_fstype(plan, entry)
first = 0;
switch (plan->flags) {
case F_MTFLAG:
val = sb.f_flags;
break;
case F_MTTYPE:
/*
* Further tests may need both of these values, so
* always copy both of them.
*/
val = sb.f_flags;
strncpy(fstype, sb.f_fstypename, MFSNAMELEN);
fstype[MFSNAMELEN] = '\0';
break;
@ -391,7 +394,7 @@ f_fstype(plan, entry)
abort();
}
}
switch(plan->flags) {
switch (plan->flags) {
case F_MTFLAG:
return (val & plan->mt_data);
case F_MTTYPE: