summaryrefslogtreecommitdiffstats
path: root/isys/otherinsmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'isys/otherinsmod.c')
-rw-r--r--isys/otherinsmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c
index 814d60286..256fbc19c 100644
--- a/isys/otherinsmod.c
+++ b/isys/otherinsmod.c
@@ -56,8 +56,8 @@ int ourInsmodCommand(int argc, char ** argv) {
/* Try two balls on sparc64, one elsewhere */
for (i = 0; ; i++) {
/* it might be having a ball */
- fd = fdOpen(ballPath, O_RDONLY, 0);
- if (fdFileno(fd) < 0) {
+ fd = Fopen(ballPath, "r.fdio");
+ if (!fd || Ferror(fd)) {
free(ballPath);
return 1;
}