Use pclose() w/ popen(), not fclose()

CVS patchset: 1677
CVS date: 1997/06/02 14:01:29
This commit is contained in:
ewt 1997-06-02 14:01:29 +00:00
parent c428a31fe6
commit fccf9d0249
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- added rpmdbFindByHeader() and rpmdbFindByTag() public functions
- added rpmfilename tag to rpmrc to define the filename format to
use for binary packages (note the rpmdir is prepended to it)
- used pclose() instead of fclose() in -t code
2.4 -> 2.4.1:
- take advantage of lchown() if it's available

2
rpm.c
View File

@ -380,7 +380,7 @@ static int build(char *arg, int buildAmount, char *passPhrase,
unlink(tmpSpecFile);
return 1;
}
fclose(f);
pclose(f);
cmd = specfile = buf;
while (*cmd) {