BSD 4_4_Lite2 release
[unix-history] / usr / src / sbin / mount_null / mount_null.c
index e8c26df..f7568b6 100644 (file)
@@ -41,7 +41,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)mount_null.c       8.5 (Berkeley) 3/27/94";
+static char sccsid[] = "@(#)mount_null.c       8.6 (Berkeley) 4/26/95";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -77,7 +77,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:
@@ -98,7 +98,7 @@ main(argc, argv)
 
        args.target = target;
 
 
        args.target = target;
 
-       if (mount(MOUNT_NULL, argv[1], mntflags, &args))
+       if (mount("loopback", argv[1], mntflags, &args))
                err(1, NULL);
        exit(0);
 }
                err(1, NULL);
        exit(0);
 }