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 /util-linux | |
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 'util-linux')
-rw-r--r-- | util-linux/fdformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c index e7dd943bb..5772e1309 100644 --- a/util-linux/fdformat.c +++ b/util-linux/fdformat.c | |||
@@ -85,7 +85,7 @@ int fdformat_main(int argc,char **argv) | |||
85 | 85 | ||
86 | /* R_OK is needed for verifying */ | 86 | /* R_OK is needed for verifying */ |
87 | if (stat(*argv,&st) < 0 || access(*argv,W_OK | R_OK ) < 0) { | 87 | if (stat(*argv,&st) < 0 || access(*argv,W_OK | R_OK ) < 0) { |
88 | bb_perror_msg_and_die(*argv); | 88 | bb_perror_msg_and_die("%s",*argv); |
89 | } | 89 | } |
90 | if (!S_ISBLK(st.st_mode)) { | 90 | if (!S_ISBLK(st.st_mode)) { |
91 | bb_error_msg_and_die("%s: not a block device",*argv); | 91 | bb_error_msg_and_die("%s: not a block device",*argv); |