bitwiseworks / libc

LIBC Next (kLIBC fork)
9 stars 4 forks source link

remove() not working on directories #138

Closed SilvanScherrer closed 8 months ago

SilvanScherrer commented 9 months ago

https://github.com/bitwiseworks/libc/blob/master/src/emx/src/lib/io/remove.c only works for files. But this is wrong. Even Knut stated it should work for Directories as well. But it misses the fsDirRemover() part when its a Directory.

dmik commented 8 months ago

Yes, you are right. This is a POSIX requirement indeed, https://pubs.opengroup.org/onlinepubs/007904975/functions/remove.html.