It's important to add the ref ot the message also when we are reporting a
negative. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26933 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -180,6 +180,7 @@ Grepper::_GrepperThread()
|
|||||||
tempFile.SetTo(fileName);
|
tempFile.SetTo(fileName);
|
||||||
|
|
||||||
while (!fMustQuit && fIterator->GetNextName(fileName)) {
|
while (!fMustQuit && fIterator->GetNextName(fileName)) {
|
||||||
|
|
||||||
message.MakeEmpty();
|
message.MakeEmpty();
|
||||||
message.what = MSG_REPORT_FILE_NAME;
|
message.what = MSG_REPORT_FILE_NAME;
|
||||||
message.AddString("filename", fileName);
|
message.AddString("filename", fileName);
|
||||||
@@ -190,14 +191,15 @@ Grepper::_GrepperThread()
|
|||||||
message.AddString("filename", fileName);
|
message.AddString("filename", fileName);
|
||||||
|
|
||||||
BEntry entry(fileName);
|
BEntry entry(fileName);
|
||||||
|
entry_ref ref;
|
||||||
|
entry.GetRef(&ref);
|
||||||
|
message.AddRef("ref", &ref);
|
||||||
|
|
||||||
if (!entry.Exists()) {
|
if (!entry.Exists()) {
|
||||||
if (fIterator->NotifyNegatives())
|
if (fIterator->NotifyNegatives())
|
||||||
fTarget.SendMessage(&message);
|
fTarget.SendMessage(&message);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
entry_ref ref;
|
|
||||||
entry.GetRef(&ref);
|
|
||||||
message.AddRef("ref", &ref);
|
|
||||||
|
|
||||||
if (!_EscapeSpecialChars(fileName, B_PATH_NAME_LENGTH)) {
|
if (!_EscapeSpecialChars(fileName, B_PATH_NAME_LENGTH)) {
|
||||||
sprintf(tempString, "%s: Not enough room to escape the filename.",
|
sprintf(tempString, "%s: Not enough room to escape the filename.",
|
||||||
|
|||||||
Reference in New Issue
Block a user