[Rpm-maint] [rpm-software-management/rpm] Fopen() and friends don't validate the mode (Issue #3058)
Panu Matilainen
notifications at github.com
Wed Apr 24 06:25:45 UTC 2024
This should fail instead of quietly falling back to fdio.
$ python -c "import rpm; print(rpm.fd('/dev/null', 'w', 'aaaiiiooo'))"
<rpm.fd object at 0x7f1490589bc0>
Besides being ugly buggy, it kinda prevents us from testing optional io types as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3058
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3058 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240423/ed4e9a74/attachment.html>
More information about the Rpm-maint
mailing list