diff --git a/pkgs/by-name/li/libredirect/libredirect.c b/pkgs/by-name/li/libredirect/libredirect.c index cc614f264823..89ca4844dd67 100644 --- a/pkgs/by-name/li/libredirect/libredirect.c +++ b/pkgs/by-name/li/libredirect/libredirect.c @@ -460,6 +460,14 @@ WRAPPER(int, unlinkat)(int dirfd, const char *path, int flags) } WRAPPER_DEF(unlinkat) +WRAPPER(int, remove)(const char *path) +{ + int (*remove_real) (const char *path) = LOOKUP_REAL(remove); + char buf[PATH_MAX]; + return remove_real(rewrite(path, buf)); +} +WRAPPER_DEF(remove) + WRAPPER(int, rmdir)(const char *path) { int (*rmdir_real) (const char *path) = LOOKUP_REAL(rmdir);