hdparm/SOURCES/hdparm-9.43-close_fd.patch

13 lines
304 B
Diff
Raw Normal View History

2019-05-07 09:33:56 +00:00
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);