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>
This commit is contained in:
parent
fa7860a27f
commit
69ab6de333
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue