Use fdRead, not read typo.
authorjbj <devnull@localhost>
Wed, 7 Apr 1999 21:10:05 +0000 (21:10 +0000)
committerjbj <devnull@localhost>
Wed, 7 Apr 1999 21:10:05 +0000 (21:10 +0000)
CVS patchset: 2970
CVS date: 1999/04/07 21:10:05

lib/rpmrc.c

index 393eb40..a02d9ab 100644 (file)
@@ -835,7 +835,7 @@ static void defaultMachine(char ** arch, char ** os) {
            if (fdFileno(fd) > 0) {
               chptr = (char *) calloc(256,1);
               if (chptr != NULL) {
-                 int irelid = read(fd, (void *)chptr, 256);
+                 int irelid = fdRead(fd, (void *)chptr, 256);
                  fdClose(fd);
                  /* example: "112393 RELEASE 020200 Version 01 OS" */
                  if (irelid > 0) {