1 |
commit: 8dcb7554ee627e9c1062cc1b4ab3bac8fcf89183 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 02:16:53 2011 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 02:16:53 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=8dcb7554 |
7 |
|
8 |
Use RC_LEVEL_SHUTDOWN |
9 |
|
10 |
--- |
11 |
src/rc/rc-logger.c | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c |
15 |
index 2b0c6be..22d7c72 100644 |
16 |
--- a/src/rc/rc-logger.c |
17 |
+++ b/src/rc/rc-logger.c |
18 |
@@ -280,7 +280,7 @@ rc_logger_open(const char *level) |
19 |
* logfile or its basedir may be read-only during shutdown so skip |
20 |
* the error in this case |
21 |
*/ |
22 |
- if (strcmp(level, "shutdown") != 0) { |
23 |
+ if (strcmp(level, RC_LEVEL_SHUTDOWN) != 0) { |
24 |
log_error = 1; |
25 |
eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno)); |
26 |
} |