diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-17 01:52:28 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-17 01:52:28 +0000 |
commit | c033d5196d863edaabf9d02531a12daa77cc48c7 (patch) | |
tree | 191eaf5851762ea1254757685eb15e885e070c5f /util-linux/fdisk_osf.c | |
parent | 4437d19fb4d7bd7cd9d8acd5e67d85c8751a6e93 (diff) | |
download | busybox-w32-c033d5196d863edaabf9d02531a12daa77cc48c7.tar.gz busybox-w32-c033d5196d863edaabf9d02531a12daa77cc48c7.tar.bz2 busybox-w32-c033d5196d863edaabf9d02531a12daa77cc48c7.zip |
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.c | 2 |
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) | |||
414 | break; | 414 | break; |
415 | case 'q': | 415 | case 'q': |
416 | if (ENABLE_FEATURE_CLEAN_UP) | 416 | if (ENABLE_FEATURE_CLEAN_UP) |
417 | close(dev_fd); | 417 | close_dev_fd(); |
418 | exit(EXIT_SUCCESS); | 418 | exit(EXIT_SUCCESS); |
419 | case 'r': | 419 | case 'r': |
420 | return; | 420 | return; |