fdisk: fix a case where we can inadvertently close /proc/partitions fd early
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user