SCCS-vsn: sbin/mount/mount.c 5.4
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)mount.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)mount.c 5.4 (Berkeley) %G%";
#endif not lint
#include <sys/param.h>
#endif not lint
#include <sys/param.h>
#define MTAB "/etc/mtab"
static struct mtab mtab[NMOUNT];
#define MTAB "/etc/mtab"
static struct mtab mtab[NMOUNT];
-static int fake, verbose;
+static int fake, rval, verbose;
main(argc, argv)
int argc;
main(argc, argv)
int argc;
if (strcmp(fs->fs_file, "/") && !BADTYPE(fs->fs_type))
mountfs(fs->fs_spec, fs->fs_file,
type ? type : fs->fs_type);
if (strcmp(fs->fs_file, "/") && !BADTYPE(fs->fs_type))
mountfs(fs->fs_spec, fs->fs_file,
type ? type : fs->fs_type);
exit(1);
}
mountfs(fs->fs_spec, fs->fs_file, type ? type : fs->fs_type);
exit(1);
}
mountfs(fs->fs_spec, fs->fs_file, type ? type : fs->fs_type);
}
if (argc != 2)
usage();
mountfs(argv[0], argv[1], type ? type : "rw");
}
if (argc != 2)
usage();
mountfs(argv[0], argv[1], type ? type : "rw");
if (!fake) {
if (mount(spec, name, type)) {
if (!fake) {
if (mount(spec, name, type)) {
fprintf(stderr, "%s on %s: ", spec, name);
switch (errno) {
case EMFILE:
fprintf(stderr, "%s on %s: ", spec, name);
switch (errno) {
case EMFILE: