summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorJohan Norberg <johan.xx.norberg@stericsson.com>2011-05-24 16:13:21 +0200
committerKenny Root <kroot@google.com>2012-01-20 17:28:42 -0800
commit69ab6de33319c111a6b9ff4c78474d7605b28175 (patch)
tree02ddabbf4e25a61a5c6b6d02b898755987aecf2e /toolbox
parentfa7860a27ff79b5697ac059c4bedc4f7445500af (diff)
downloadsystem_core-69ab6de33319c111a6b9ff4c78474d7605b28175.zip
system_core-69ab6de33319c111a6b9ff4c78474d7605b28175.tar.gz
system_core-69ab6de33319c111a6b9ff4c78474d7605b28175.tar.bz2
Toolbox implementation of chown has a bad print
When the chown program fails it prints out an error message and is describing itself as chmod. This has been corrected. Change-Id: I2c489975f09343bdf66acbf7df6e7183c2daff78 Signed-off-by: christian bejram <christian.bejram@stericsson.com>
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/chown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolbox/chown.c b/toolbox/chown.c
index e9d108b..7b24c52 100644
--- a/toolbox/chown.c
+++ b/toolbox/chown.c
@@ -62,7 +62,7 @@ int chown_main(int argc, char **argv)
for (i = 2; i < argc; i++) {
if (chown(argv[i], uid, gid) < 0) {
- fprintf(stderr, "Unable to chmod %s: %s\n", argv[i], strerror(errno));
+ fprintf(stderr, "Unable to chown %s: %s\n", argv[i], strerror(errno));
return 10;
}
}