projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b761f0b
)
Less confusing error message when realpath() fails.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Tue, 16 Apr 2013 19:47:56 +0000
(21:47 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Tue, 16 Apr 2013 19:47:56 +0000
(21:47 +0200)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index
064537c
..
8430c20
100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-275,11
+275,11
@@
int main(int argc, char **argv)
char config_filename_canon[PATH_MAX];
if (realpath(argv[0], argv0_canon) == NULL) {
- log_perror(
"realpath"
);
+ log_perror(
argv[0]
);
exit(1);
}
if (realpath(config_filename.c_str(), config_filename_canon) == NULL) {
- log_perror(
"realpath"
);
+ log_perror(
config_filename.c_str()
);
exit(1);
}