1 |
commit: 78a25883f35bbb657e2baf7c2e9181f91e35333c |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Oct 27 17:59:58 2012 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 28 20:02:41 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=78a25883 |
7 |
|
8 |
Checkpath: print the path when correcting the owner |
9 |
|
10 |
Checkpath was printing the path it was working with unless it was |
11 |
correcting the owner. In this case, it was printing "checkpath", which |
12 |
is not very useful. |
13 |
|
14 |
Reported-by: <devurandom <AT> gmx.net> |
15 |
X-Gentoo-Bug: 439014 |
16 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439014 |
17 |
|
18 |
--- |
19 |
src/rc/checkpath.c | 2 +- |
20 |
1 files changed, 1 insertions(+), 1 deletions(-) |
21 |
|
22 |
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c |
23 |
index 518d237..5aea597 100644 |
24 |
--- a/src/rc/checkpath.c |
25 |
+++ b/src/rc/checkpath.c |
26 |
@@ -133,7 +133,7 @@ do_check(char *path, uid_t uid, gid_t gid, mode_t mode, inode_t type, |
27 |
} |
28 |
|
29 |
if (mode && (st.st_mode & 0777) != mode) { |
30 |
- einfo("%s: correcting mode", applet); |
31 |
+ einfo("%s: correcting mode", path); |
32 |
if (chmod(path, mode)) { |
33 |
eerror("%s: chmod: %s", applet, strerror(errno)); |
34 |
return -1; |