Projects
home:Eustace:branches:Eulaceura:Factory
hdparm
_service:obs_scm:0001-hdparm-fallocate-close-fd...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-hdparm-fallocate-close-fd.patch of Package hdparm
diff --git a/fallocate.c b/fallocate.c index 4e60459..d73c0f9 100644 --- a/fallocate.c +++ b/fallocate.c @@ -39,9 +39,11 @@ int do_fallocate_syscall (const char *path, __u64 bytecount) err = syscall(SYS_fallocate, fd, mode, offset, len); if (err >= 0) { fsync(fd); + close(fd); exit(0); } err = errno; + close(fd); unlink(path); } perror(path);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2