mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 08:00:52 +02:00
* fix for standalone '~' with HOME=/ on Unix
git-svn-id: trunk@23499 -
This commit is contained in:
parent
7fbf05dd18
commit
426050cb9f
@ -161,7 +161,7 @@ begin
|
||||
S := GetEnv ('HOME');
|
||||
{$ENDIF FPC_FEXPAND_GETENV_PCHAR}
|
||||
{$ENDIF FPC_FEXPAND_SYSUTILS}
|
||||
if (S = '') or (Length (S) = 1)
|
||||
if (S = '') or (Length (S) = 1) and (Length (Pa) > 1)
|
||||
and (S [1] = DirectorySeparator) then
|
||||
Delete (Pa, 1, 1)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user