mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:39:25 +02:00
* remove final slash from HOME env
This commit is contained in:
parent
854bbf5535
commit
30043d61f5
@ -166,6 +166,10 @@ begin
|
||||
Check ('...', CurDir + DirSep + '...');
|
||||
{$IFDEF UNIX}
|
||||
S := GetEnv ('HOME');
|
||||
{ On m68k netbsd at least, HOME contains a final slash
|
||||
remove it PM }
|
||||
if S[length(S)]=DirSep then
|
||||
S:=Copy(S,1,Length(S)-1);
|
||||
Check ('~', S);
|
||||
Check ('~' + DirSep + '.', S);
|
||||
if (Length (S) > 0) and (S [Length (S)] <> DirSep) then S := S + DirSep;
|
||||
|
Loading…
Reference in New Issue
Block a user