Fix -[NSFileManager contentsOfDirectoryAtURL:...]

This commit is contained in:
Frederik Seiffert 2023-04-26 12:18:25 +02:00 committed by Frederik Seiffert
parent df743e6d52
commit 52548e3d09
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2023-04-26 Frederik Seiffert <frederik@algoriddim.com>
* Tests/base/NSFileManager/general.m:
* Source/NSFileManager.m:
Add test for and fix -[NSFileManager contentsOfDirectoryAtURL:...]
implementation not working correctly if directory did not match
current working directory.
2022-04-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSSocketPort.m: set listening socket into non-blocking mode

View file

@ -837,7 +837,7 @@ static NSStringEncoding defaultEncoding;
NSURL *tempURL;
NSString *lastComponent;
tempURL = [NSURL fileURLWithPath: tempPath];
tempURL = [NSURL fileURLWithPath: tempPath relativeToURL: url];
lastComponent = [tempPath lastPathComponent];
/* we purge files beginning with . */