hdparm/SOURCES/hdparm-9.43-close_fd.patch
2021-09-09 18:18:19 +00:00

13 lines
304 B
Diff

Index: hdparm-9.43/fallocate.c
===================================================================
--- hdparm-9.43.orig/fallocate.c
+++ hdparm-9.43/fallocate.c
@@ -41,6 +41,7 @@ int do_fallocate_syscall (const char *pa
exit(0);
}
err = errno;
+ close(fd);
unlink(path);
}
perror(path);