more security: don't start shell code from argv
This commit is contained in:
parent
8bbee85214
commit
73804d6f7e
@ -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);
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user