diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2012-10-27 12:59:58 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2012-10-28 15:02:41 -0500 |
commit | 78a25883f35bbb657e2baf7c2e9181f91e35333c (patch) | |
tree | 495a6244993d39d665a00c5e46d933c0c78e7ca5 | |
parent | 18dc0efa521ab690ef7972083942217c6085787c (diff) | |
download | openrc-78a25883f35bbb657e2baf7c2e9181f91e35333c.tar.gz openrc-78a25883f35bbb657e2baf7c2e9181f91e35333c.tar.bz2 openrc-78a25883f35bbb657e2baf7c2e9181f91e35333c.tar.xz |
Checkpath: print the path when correcting the owner
Checkpath was printing the path it was working with unless it was
correcting the owner. In this case, it was printing "checkpath", which
is not very useful.
Reported-by: <devurandom@gmx.net>
X-Gentoo-Bug: 439014
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439014
-rw-r--r-- | src/rc/checkpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c index 518d237..5aea597 100644 --- a/src/rc/checkpath.c +++ b/src/rc/checkpath.c @@ -133,7 +133,7 @@ do_check(char *path, uid_t uid, gid_t gid, mode_t mode, inode_t type, } if (mode && (st.st_mode & 0777) != mode) { - einfo("%s: correcting mode", applet); + einfo("%s: correcting mode", path); if (chmod(path, mode)) { eerror("%s: chmod: %s", applet, strerror(errno)); return -1; |