summaryrefslogtreecommitdiffstats
path: root/sbin/mount_cd9660
diff options
context:
space:
mode:
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 9ef716d..7f307ea 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;
OpenPOWER on IntegriCloud