These should have been part of 15767 too.

This commit is contained in:
Rob Landley
2006-08-03 17:58:17 +00:00
parent 7478804b78
commit 86b4d64aa3
9 changed files with 34 additions and 61 deletions

View File

@ -14,9 +14,6 @@
*/
#include "busybox.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <mntent.h>
/* various defines swiped from linux/cdrom.h */
@ -40,7 +37,7 @@ int eject_main(int argc, char **argv)
erase_mtab(m->mnt_fsname);
}
}
if (ioctl(bb_xopen(device, (O_RDONLY | O_NONBLOCK)),
if (ioctl(xopen(device, (O_RDONLY | O_NONBLOCK)),
(flags ? CDROMCLOSETRAY : CDROMEJECT))) {
bb_perror_msg_and_die("%s", device);
}