aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2006-02-28 08:23:27 +0000
committerGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2006-02-28 08:23:27 +0000
commit73804d6f7e6220e220ac167bd77ef210ea6e3d68 (patch)
treef2c617ba2047113c2661a3fd5fc87997dc37e184 /miscutils
parent8bbee852149faacd89558be2449a69d75c4cb9cf (diff)
downloadbusybox-73804d6f7e6220e220ac167bd77ef210ea6e3d68.tar.gz
busybox-73804d6f7e6220e220ac167bd77ef210ea6e3d68.tar.bz2
more security: don't start shell code from argv
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/eject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 2643f36d5..189f54510 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -43,7 +43,7 @@ extern int eject_main(int argc, char **argv)
}
if (ioctl(bb_xopen(device, (O_RDONLY | O_NONBLOCK)),
(flags ? CDROMCLOSETRAY : CDROMEJECT))) {
- bb_perror_msg_and_die(device);
+ bb_perror_msg_and_die("%s", device);
}
return (EXIT_SUCCESS);
}