parent
2b378d59a9
commit
1bb3faed29
@ -778,7 +778,7 @@ linux_unlinkat_impl(struct thread *td, enum uio_seg pathseg, const char *path,
|
||||
if (error == EPERM && !(args->flag & LINUX_AT_REMOVEDIR)) {
|
||||
/* Introduce POSIX noncompliant behaviour of Linux */
|
||||
if (kern_statat(td, AT_SYMLINK_NOFOLLOW, dfd, path,
|
||||
UIO_SYSSPACE, &st, NULL) == 0 && S_ISDIR(st.st_mode))
|
||||
pathseg, &st, NULL) == 0 && S_ISDIR(st.st_mode))
|
||||
error = EISDIR;
|
||||
}
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user