diff options
author | Denis Vlasenko | 2008-04-17 01:52:28 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-04-17 01:52:28 +0000 |
commit | c033d5196d863edaabf9d02531a12daa77cc48c7 (patch) | |
tree | 191eaf5851762ea1254757685eb15e885e070c5f /util-linux/fdisk_osf.c | |
parent | 4437d19fb4d7bd7cd9d8acd5e67d85c8751a6e93 (diff) | |
download | busybox-c033d5196d863edaabf9d02531a12daa77cc48c7.zip busybox-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index ba01a7f..e281ea5 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; |