parent
53726a1f1e
commit
e0aef0d62d
@ -741,7 +741,7 @@ linux_unlink(struct thread *td, struct linux_unlink_args *args)
|
||||
if (error == EPERM) {
|
||||
/* Introduce POSIX noncompliant behaviour of Linux */
|
||||
if (kern_statat(td, 0, AT_FDCWD, args->path,
|
||||
UIO_SYSSPACE, &st, NULL) == 0) {
|
||||
UIO_USERSPACE, &st, NULL) == 0) {
|
||||
if (S_ISDIR(st.st_mode))
|
||||
error = EISDIR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user