Fix die() call in setup() - sacc - sacc(omys), simple console gopher client | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit f2c03523d69f506dd4f40f4258ed8e37c5f008ca | |
parent e5ffdd3e259aafb40e46381e1093c942b5a91757 | |
Author: Quentin Rameau <[email protected]> | |
Date: Sun, 27 Aug 2017 13:27:56 +0200 | |
Fix die() call in setup() | |
Diffstat: | |
M sacc.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/sacc.c b/sacc.c | |
@@ -749,7 +749,7 @@ setup(void) | |
if ((devnullfd = open("/dev/null", O_WRONLY)) < 0) | |
die("open: /dev/null: %s", strerror(errno)); | |
if (mkdir("/tmp/sacc", S_IRWXU) < 0 && errno != EEXIST) | |
- die("mkdir: %s: %s", "/tmp/sacc", errno); | |
+ die("mkdir: %s: %s", "/tmp/sacc", strerror(errno)); | |
uisetup(); | |
} | |