[Rpm-maint] [rpm-software-management/rpm] Close file before replacing signed (PR #1888)

etaishev notifications at github.com
Mon Jan 17 20:37:09 UTC 2022


While signing an rpm package the file descriptor is not closed before replacing the signature.

For example, this could be a problem if the rpm --addsign is called in a virtual machine on Windows with a NTFS shared folder:
```
rpmsign --addsign --signfiles ... "untitled-0.1-1.i486.rpm"
untitled-0.1-1.i486.rpm:
error: replacing untitled-0.1-1.i486.rpm failed: Text file busy
```
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1888

-- Commit Summary --

  * Close file before replacing signed

-- File Changes --

    M sign/rpmgensig.c (4)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1888.patch
https://github.com/rpm-software-management/rpm/pull/1888.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1888
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1888 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220117/97c87e08/attachment-0001.html>


More information about the Rpm-maint mailing list