hdparm/hdparm-9.43-close_fd.patch
Petr Šabata 3553bfaa70 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/hdparm#63bf783c5a54d03e5c88f466ef40844b3a82f329
2020-10-15 12:22:28 +02: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);