tFix die() call in setup() - sacc - sacc (saccomys): simple gopher client.
Log
Files
Refs
LICENSE
---
commit f2c03523d69f506dd4f40f4258ed8e37c5f008ca
parent e5ffdd3e259aafb40e46381e1093c942b5a91757
Author: Quentin Rameau 
Date:   Sun, 27 Aug 2017 13:27:56 +0200

Fix die() call in setup()

Diffstat:
  sacc.c                              |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sacc.c b/sacc.c
t@@ -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();
 }