summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-11 23:10:15 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-11 23:10:15 +0000
commit774e371261e54ced36c80addd09342f2d06344ed (patch)
treeab3399b8433c12d7bdde748e8d5f1c40bbf13ba0 /mdk-stage1
parentbacdce0a4c5420430d1ac818a41f423a3f269613 (diff)
downloaddrakx-backup-do-not-use-774e371261e54ced36c80addd09342f2d06344ed.tar
drakx-backup-do-not-use-774e371261e54ced36c80addd09342f2d06344ed.tar.gz
drakx-backup-do-not-use-774e371261e54ced36c80addd09342f2d06344ed.tar.bz2
drakx-backup-do-not-use-774e371261e54ced36c80addd09342f2d06344ed.tar.xz
drakx-backup-do-not-use-774e371261e54ced36c80addd09342f2d06344ed.zip
close some fd's
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/probing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 7f3607c3d..9898d35f0 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -114,6 +114,8 @@ void probe_that_type(enum driver_type type)
}
}
}
+
+ fclose(f);
}
}
@@ -194,6 +196,7 @@ static void find_media(void)
buf[i-1] = '\0'; /* eat the \n */
tmp[count].model = strdup(buf);
}
+ close(fd);
log_message("IDE/%d: %s is a %s", tmp[count].type, tmp[count].name, tmp[count].model);
tmp[count].bus = IDE;