projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
51b26f0
)
Fix for Ubuntu.
author
Brian Aker
<brian@tangent.org>
Fri, 2 Mar 2012 07:19:05 +0000
(23:19 -0800)
committer
Brian Aker
<brian@tangent.org>
Fri, 2 Mar 2012 07:19:05 +0000
(23:19 -0800)
util/log.hpp
patch
|
blob
|
history
diff --git
a/util/log.hpp
b/util/log.hpp
index 3c940758dc2b4bf3d28c0e155932ff78c810d9b7..885133a2b66cd0d785175586fdf84013be4d2734 100644
(file)
--- a/
util/log.hpp
+++ b/
util/log.hpp
@@
-96,10
+96,10
@@
struct log_info_st
if (opt_syslog)
{
char buffer[1024];
-
(void)
getcwd(buffer, sizeof(buffer));
+
char *getcwd_ret=
getcwd(buffer, sizeof(buffer));
syslog(LOG_ERR, "Could not open log file \"%.*s\", from \"%s\", open failed with (%s)",
int(filename.size()), filename.c_str(),
-
buffer
,
+
getcwd_ret
,
strerror(errno));
}
std::cerr << "Could not open log file for writing, switching to stderr." << std::endl;