diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2006-03-23 02:07:20 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-23 02:07:20 +0000 |
| commit | 948a09d6f288144744ebe281bc18c4bf1a9fac58 (patch) | |
| tree | 4a748b7660c089bc78da852352e90ac10a3cf15c /miscutils | |
| parent | 64bef2ab9ca5c9a19abfef76370b5f0f60e06baf (diff) | |
| download | busybox-w32-948a09d6f288144744ebe281bc18c4bf1a9fac58.tar.gz busybox-w32-948a09d6f288144744ebe281bc18c4bf1a9fac58.tar.bz2 busybox-w32-948a09d6f288144744ebe281bc18c4bf1a9fac58.zip | |
dont printf arguments given by user for security sanity
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/mountpoint.c | 2 | ||||
| -rw-r--r-- | miscutils/setsid.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c index 38c654c6d..1248dc011 100644 --- a/miscutils/mountpoint.c +++ b/miscutils/mountpoint.c | |||
| @@ -64,7 +64,7 @@ int mountpoint_main(int argc, char **argv) | |||
| 64 | } | 64 | } |
| 65 | } | 65 | } |
| 66 | if (!(opt & OPT_q)) | 66 | if (!(opt & OPT_q)) |
| 67 | bb_perror_msg(arg); | 67 | bb_perror_msg("%s", arg); |
| 68 | return EXIT_FAILURE; | 68 | return EXIT_FAILURE; |
| 69 | } | 69 | } |
| 70 | } | 70 | } |
diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 8061896f5..39be54621 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c | |||
| @@ -41,6 +41,6 @@ setsid_main(int argc, char *argv[]) { | |||
| 41 | 41 | ||
| 42 | execvp(argv[1], argv + 1); | 42 | execvp(argv[1], argv + 1); |
| 43 | 43 | ||
| 44 | bb_perror_msg_and_die(argv[1]); | 44 | bb_perror_msg_and_die("%s", argv[1]); |
| 45 | 45 | ||
| 46 | } | 46 | } |
