[Rpm-maint] [rpm-software-management/rpm] rpmspec: Support - as input for reading from stdin (PR #1928)
Florian Festi
notifications at github.com
Tue Feb 22 08:24:55 UTC 2022
@ffesti commented on this pull request.
> @@ -385,7 +385,11 @@ static int readLineFromOFI(rpmSpec spec, OFI_t *ofi)
retry:
/* Make sure the current file is open */
if (ofi->fp == NULL) {
- ofi->fp = fopen(ofi->fileName, "r");
+ if (!strcmp(ofi->fileName, "-")) {
Here you go!
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1928#discussion_r811683449
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1928/review/889432413 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220222/1245ace9/attachment.html>
More information about the Rpm-maint
mailing list