summaryrefslogtreecommitdiff
path: root/tools-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools-util.c')
-rw-r--r--tools-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools-util.c b/tools-util.c
index bd114af3..f48b015b 100644
--- a/tools-util.c
+++ b/tools-util.c
@@ -67,7 +67,7 @@ char *read_file_str(int dirfd, const char *path)
len = read(fd, buf, len);
if (len < 0)
- die("read error: %s", strerror(errno));
+ die("read error: %m");
buf[len] = '\0';
if (len && buf[len - 1] == '\n')