aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_cd9660
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1994-08-02 11:45:43 +0000
committerDavid Greenman <dg@FreeBSD.org>1994-08-02 11:45:43 +0000
commit87006abef64b52cd9eacfc548a521ec134d975dc (patch)
treed0b6c18eb03c42d0f660d2dc945ee1512d132d41 /sbin/mount_cd9660
parente05db2e2a5dbccfd1ad06260acb6e28bd91e2f2e (diff)
Notes
Diffstat (limited to 'sbin/mount_cd9660')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index 9ef716df9d2f..7f307ea2aa76 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -75,9 +75,8 @@ main(argc, argv)
{
struct iso_args args;
int ch, mntflags, opts;
- char *dev, *dir, *options;
+ char *dev, *dir;
- options = NULL;
mntflags = opts = 0;
while ((ch = getopt(argc, argv, "ego:r")) != EOF)
switch (ch) {
@@ -88,7 +87,7 @@ main(argc, argv)
opts |= ISOFSMNT_GENS;
break;
case 'o':
- getmntopts(options, mopts, &mntflags);
+ getmntopts(optarg, mopts, &mntflags);
break;
case 'r':
opts |= ISOFSMNT_NORRIP;