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-27 12:59:58 -0500 |
commit | e634376482e70e40aab460ca1f60a4e5a5522bba (patch) | |
tree | f5349476d0f09080099a2f354f9e771d61c5cfa5 /src | |
parent | 5148047f8996df41b02543efd293ed02c83c8ee6 (diff) |
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
Diffstat (limited to 'src')
-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 518d2373..5aea5973 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; |