aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_osf.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-17 01:52:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-17 01:52:28 +0000
commitc033d5196d863edaabf9d02531a12daa77cc48c7 (patch)
tree191eaf5851762ea1254757685eb15e885e070c5f /util-linux/fdisk_osf.c
parent4437d19fb4d7bd7cd9d8acd5e67d85c8751a6e93 (diff)
downloadbusybox-c033d5196d863edaabf9d02531a12daa77cc48c7.tar.gz
fdisk: fix a case where we can inadvertently close /proc/partitions fd early
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r--util-linux/fdisk_osf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index ba01a7f0c..e281ea5d9 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -414,7 +414,7 @@ bsd_select(void)
break;
case 'q':
if (ENABLE_FEATURE_CLEAN_UP)
- close(dev_fd);
+ close_dev_fd();
exit(EXIT_SUCCESS);
case 'r':
return;