Access fd_fileno correctly.

CVS patchset: 3354
CVS date: 1999/09/30 16:11:52
This commit is contained in:
jbj 1999-09-30 16:11:52 +00:00
parent 1baa4101d6
commit 5b7c1963eb
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static int isSpecFile(const char *specfile)
int count;
int checking;
if ((fd = fdOpen(specfile, O_RDONLY, 0)) < 0) {
if (fdFileno((fd = fdOpen(specfile, O_RDONLY, 0))) < 0) {
fprintf(stderr, _("Unable to open spec file: %s\n"), specfile);
return 0;
}