Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69ab6de3 authored by Johan Norberg's avatar Johan Norberg Committed by Kenny Root
Browse files

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: default avatarchristian bejram <christian.bejram@stericsson.com>
parent fa7860a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }