mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
parent
c4a8c6798b
commit
49e907e5f6
@ -374,6 +374,7 @@ extern "C" int lstat(const char *path, struct stat *buf)
|
||||
try {
|
||||
Absolute_path resolved_path;
|
||||
resolve_symlinks_except_last_element(path, resolved_path);
|
||||
resolved_path.remove_trailing('/');
|
||||
FNAME_FUNC_WRAPPER(stat, resolved_path.base(), buf);
|
||||
} catch (Symlink_resolve_error) {
|
||||
return -1;
|
||||
@ -649,6 +650,7 @@ extern "C" int stat(const char *path, struct stat *buf)
|
||||
try {
|
||||
Absolute_path resolved_path;
|
||||
resolve_symlinks(path, resolved_path);
|
||||
resolved_path.remove_trailing('/');
|
||||
FNAME_FUNC_WRAPPER(stat, resolved_path.base(), buf);
|
||||
} catch(Symlink_resolve_error) {
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user