summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/digest.c b/crypto/digest.c
index 9b7b73019a..493e56902d 100644
--- a/crypto/digest.c
+++ b/crypto/digest.c
@@ -289,7 +289,7 @@ int digest_file_window(struct digest *d, const char *filename,
fd = open(filename, O_RDONLY);
if (fd < 0) {
perror(filename);
- return fd;
+ return -errno;
}
buf = memmap(fd, PROT_READ);