From 985d6b5437b28cf76a84c7bd7b43e9525c127712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 26 Jun 2007 16:09:08 +0000 Subject: [PATCH] DiskProbe now also allows you to open directories; even though you can't access their stream, you can still see and change their attributes (same for symlinks which were already allowed before). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21508 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/DiskProbe.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/apps/diskprobe/DiskProbe.cpp b/src/apps/diskprobe/DiskProbe.cpp index 141803ba6b..ee390b2073 100644 --- a/src/apps/diskprobe/DiskProbe.cpp +++ b/src/apps/diskprobe/DiskProbe.cpp @@ -298,7 +298,6 @@ void DiskProbe::RefsReceived(BMessage *message) { bool traverseLinks = (modifiers() & B_SHIFT_KEY) == 0; - int32 directories = 0; int32 index = 0; entry_ref ref; @@ -310,15 +309,6 @@ DiskProbe::RefsReceived(BMessage *message) BEntry entry; status_t status = entry.SetTo(&ref, traverseLinks); - // If it's a directory, we won't handle it, but we would accept a volume - if (status == B_OK && traverseLinks && entry.IsDirectory()) { - BDirectory directory(&entry); - if (directory.InitCheck() != B_OK || !directory.IsRootDirectory()) { - directories++; - continue; - } - } - if (status == B_OK) status = Probe(entry, attribute); @@ -334,12 +324,6 @@ DiskProbe::RefsReceived(BMessage *message) B_WIDTH_AS_USUAL, B_STOP_ALERT))->Go(); } } - - if (directories > 0) { - (new BAlert("DiskProbe request", - "Sorry, only regular files and volumes can be opened.\n", "Ok", NULL, NULL, - B_WIDTH_AS_USUAL, B_STOP_ALERT))->Go(); - } }