more security: don't start shell code from argv

This commit is contained in:
"Vladimir N. Oleynik" 2006-02-28 08:23:27 +00:00
parent 8bbee85214
commit 73804d6f7e
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -49,5 +49,5 @@ retry:
execvp(argv[0], argv);
failure:
bb_perror_msg_and_die(argv[0]);
bb_perror_msg_and_die("%s", argv[0]);
}