aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-10-19 12:53:35 +0100
committerRon Yorston <rmy@pobox.com>2015-10-19 12:53:35 +0100
commit8afe8ee83a274925340473fa4d0a984bdcbee740 (patch)
treeb78ed448cb6a55ba7d0ef8141a9f68b55b8acf11 /libbb
parentcaab029609633220c417dc0aaa9025fd4b7a169c (diff)
parent3d0805e9e7c45e6c0f9fb5e587d8b4a5a5f3c74c (diff)
downloadbusybox-w32-8afe8ee83a274925340473fa4d0a984bdcbee740.tar.gz
busybox-w32-8afe8ee83a274925340473fa4d0a984bdcbee740.tar.bz2
busybox-w32-8afe8ee83a274925340473fa4d0a984bdcbee740.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c2
-rw-r--r--libbb/human_readable.c11
-rw-r--r--libbb/messages.c2
3 files changed, 5 insertions, 10 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index e75257a74..7da7cad1c 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -442,7 +442,7 @@ static void parse_config_file(void)
442 goto pe_label; 442 goto pe_label;
443 } 443 }
444 *e = ':'; /* get_uidgid needs USER:GROUP syntax */ 444 *e = ':'; /* get_uidgid needs USER:GROUP syntax */
445 if (get_uidgid(&sct->m_ugid, s, /*allow_numeric:*/ 1) == 0) { 445 if (get_uidgid(&sct->m_ugid, s) == 0) {
446 errmsg = "unknown user/group"; 446 errmsg = "unknown user/group";
447 goto pe_label; 447 goto pe_label;
448 } 448 }
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index 5c7fc076f..b4e0ef181 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -14,16 +14,11 @@
14 * representations (say, powers of 1024) and manipulating coefficients. 14 * representations (say, powers of 1024) and manipulating coefficients.
15 * The base ten "bytes" output could be handled similarly. 15 * The base ten "bytes" output could be handled similarly.
16 * 16 *
17 * 2) This routine always outputs a decimal point and a tenths digit when 17 * 2) This routine outputs a decimal point and a tenths digit when
18 * display_unit != 0. Hence, it isn't uncommon for the returned string 18 * display_unit == 0. Hence, it isn't uncommon for the returned string
19 * to have a length of 5 or 6. 19 * to have a length of 5 or 6.
20 * 20 *
21 * It might be nice to add a flag to indicate no decimal digits in 21 * If block_size is also 0, no decimal digits are printed.
22 * that case. This could be either an additional parameter, or a
23 * special value of display_unit. Such a flag would also be nice for du.
24 *
25 * Some code to omit the decimal point and tenths digit is sketched out
26 * and "#if 0"'d below.
27 * 22 *
28 * Licensed under GPLv2, see file LICENSE in this source tree. 23 * Licensed under GPLv2, see file LICENSE in this source tree.
29 */ 24 */
diff --git a/libbb/messages.c b/libbb/messages.c
index 108cb0285..2aa3f175d 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -29,7 +29,7 @@ const char bb_msg_can_not_create_raw_socket[] ALIGN1 = "can't create raw socket"
29const char bb_msg_perm_denied_are_you_root[] ALIGN1 = "permission denied (are you root?)"; 29const char bb_msg_perm_denied_are_you_root[] ALIGN1 = "permission denied (are you root?)";
30const char bb_msg_you_must_be_root[] ALIGN1 = "you must be root"; 30const char bb_msg_you_must_be_root[] ALIGN1 = "you must be root";
31const char bb_msg_requires_arg[] ALIGN1 = "%s requires an argument"; 31const char bb_msg_requires_arg[] ALIGN1 = "%s requires an argument";
32const char bb_msg_invalid_arg[] ALIGN1 = "invalid argument '%s' to '%s'"; 32const char bb_msg_invalid_arg_to[] ALIGN1 = "invalid argument '%s' to '%s'";
33const char bb_msg_standard_input[] ALIGN1 = "standard input"; 33const char bb_msg_standard_input[] ALIGN1 = "standard input";
34const char bb_msg_standard_output[] ALIGN1 = "standard output"; 34const char bb_msg_standard_output[] ALIGN1 = "standard output";
35 35