summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorav <av@cvs.openbsd.org>2008-05-30 17:41:31 +0000
committerav <av@cvs.openbsd.org>2008-05-30 17:41:31 +0000
commitbf2f0e7b47679131bcbc4bf42fcd7605360ca65a (patch)
tree0880bedb55e97f5fd7ca0e0ad91888bfcd87bed7 /usr.bin
parentdb2bd6a0d21e9a33f3de50b7b975afadd032cb5f (diff)
cdio's blank command blanked CD twise. Fixed.
ok jakemsr krw millert ratchov
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cdio/mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cdio/mmc.c b/usr.bin/cdio/mmc.c
index b0390c214ed..a8039723c42 100644
--- a/usr.bin/cdio/mmc.c
+++ b/usr.bin/cdio/mmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mmc.c,v 1.17 2007/07/31 21:21:11 deraadt Exp $ */
+/* $OpenBSD: mmc.c,v 1.18 2008/05/30 17:41:30 av Exp $ */
/*
* Copyright (c) 2006 Michael Coulter <mjc@openbsd.org>
@@ -56,8 +56,8 @@ blank(void)
fd = -1;
if (!open_cd(cdname, 1))
return (-1);
+ r = ioctl(fd, SCIOCCOMMAND, &scr);
}
- r = ioctl(fd, SCIOCCOMMAND, &scr);
return (r == 0 ? scr.retsts : -1);
}