I noticed that when I straced rpm it called close(<a large number>), and that this number had been retuned by read() previously. This could be a problem if the config file is really short, or if lots of files are opened. This patch is against the popt from rpm. --- popt/poptconfig.c~ Thu Oct 8 07:20:04 1998 +++ popt/poptconfig.c Sat Mar 13 00:51:23 1999 @@ -83,7 +83,7 @@ lseek(fd, 0, 0); file = alloca(fileLength + 1); - if ((fd = read(fd, file, fileLength)) != fileLength) { + if (read(fd, file, fileLength) != fileLength) { rc = errno; close(fd); errno = rc;
Fixed in the popt CVS tree. Thanks for finding.
Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/6fb6e059dc50fcdc2480c06cfcf0a45674283725 Merge pull request #1984 from sdodson/issue1966 [WIP] Only run node specific bits on nodes