BSD 4_4_Lite2 release
[unix-history] / usr / src / sbin / mount_kernfs / mount_kernfs.c
index 33a6b5e..69fcb77 100644 (file)
@@ -42,7 +42,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)mount_kernfs.c     8.2 (Berkeley) 3/27/94";
+static char sccsid[] = "@(#)mount_kernfs.c     8.3 (Berkeley) 5/4/95";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -74,7 +74,7 @@ main(argc, argv)
        while ((ch = getopt(argc, argv, "o:")) != EOF)
                switch (ch) {
                case 'o':
        while ((ch = getopt(argc, argv, "o:")) != EOF)
                switch (ch) {
                case 'o':
-                       getmntopts(optarg, mopts, &mntflags);
+                       getmntopts(optarg, mopts, &mntflags, 0);
                        break;
                case '?':
                default:
                        break;
                case '?':
                default:
@@ -86,7 +86,7 @@ main(argc, argv)
        if (argc != 2)
                usage();
 
        if (argc != 2)
                usage();
 
-       if (mount(MOUNT_KERNFS, argv[1], mntflags, NULL))
+       if (mount("kernfs", argv[1], mntflags, NULL))
                err(1, NULL);
        exit(0);
 }
                err(1, NULL);
        exit(0);
 }