Fix die() call in setup() - sacc - sacc(omys), simple console gopher client
HTML git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR LICENSE
---
DIR commit f2c03523d69f506dd4f40f4258ed8e37c5f008ca
DIR parent e5ffdd3e259aafb40e46381e1093c942b5a91757
HTML Author: Quentin Rameau <quinq@fifth.space>
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(-)
---
DIR 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();
}