Don't ignore the entire var directory, but rather only
the swap file specifically. There is already a TODO in the code for replacing this mechanism with something cleaner and more flexible. Resolves ticket #7367. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41026 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -107,10 +107,10 @@ CopyEngine::ResetTargets(const char* source)
|
|||||||
// makes sense, since passing a volume is meant to folders that are
|
// makes sense, since passing a volume is meant to folders that are
|
||||||
// volume specific, like "trash".
|
// volume specific, like "trash".
|
||||||
BPath path(source);
|
BPath path(source);
|
||||||
if (path.Append("common/var") == B_OK)
|
if (path.Append("common/var/swap") == B_OK)
|
||||||
fVarDirectory.SetTo(path.Path());
|
fSwapFileEntry.SetTo(path.Path());
|
||||||
else
|
else
|
||||||
fVarDirectory.Unset();
|
fSwapFileEntry.Unset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -535,9 +535,9 @@ CopyEngine::_ShouldCopyEntry(const BEntry& entry, const char* name,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fVarDirectory == entry) {
|
if (fSwapFileEntry == entry) {
|
||||||
// current location of var
|
// current location of var
|
||||||
printf("ignoring common/'%s'.\n", name);
|
printf("ignoring swap file\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ private:
|
|||||||
|
|
||||||
// TODO: Should be made into a list of BEntris to be ignored, perhaps.
|
// TODO: Should be made into a list of BEntris to be ignored, perhaps.
|
||||||
// settable by method...
|
// settable by method...
|
||||||
BEntry fVarDirectory;
|
BEntry fSwapFileEntry;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user