Skip to content
Snippets Groups Projects
Commit bd7e2165 authored by mattijs's avatar mattijs
Browse files

ENH: POSIX:ln: do not check relative sources for existence

parent 00fec91f
Branches
Tags
No related merge requests found
......@@ -864,7 +864,7 @@ bool Foam::ln(const fileName& src, const fileName& dst)
return false;
}
if (!exists(src))
if (src.isAbsolute() && !exists(src))
{
WarningIn("ln(const fileName&, const fileName&)")
<< "source " << src << " does not exist." << endl;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment