From eb9c6bd38ace4388ad137a9b4b645e062ecc5c21 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 24 Jul 2008 14:15:23 +0000 Subject: [PATCH] Adopt Axel's solution to the unmount/rmdir problem (only remove from rootfs) in DriveSetup also. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26611 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/drivesetup/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index 0761f6e76f..897d3d099b 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -633,7 +633,8 @@ MainWindow::_Unmount(BDiskDevice* disk, partition_id selectedPartition) _DisplayPartitionError("Could not unmount partition %s.", partition, ret); } else { - rmdir(path.Path()); + if (dev_for_path(path.Path()) == dev_for_path("/")) + rmdir(path.Path()); // successful unmount, adapt to the changes _ScanDrives(); }