Repository navigation
Commit e6bc45d
vfs: make unlink() and rmdir() return ENOENT in preference to EROFS
If user space attempts to remove a non-existent file or directory, and
the file system is mounted read-only, return ENOENT instead of EROFS.
Either error code is arguably valid/correct, but ENOENT is a more
specific error message.
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 9054760 commit e6bc45d
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2624 | 2624 | | |
2625 | 2625 | | |
2626 | 2626 | | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
2627 | 2631 | | |
2628 | 2632 | | |
2629 | 2633 | | |
| |||
2709 | 2713 | | |
2710 | 2714 | | |
2711 | 2715 | | |
2712 | | - | |
2713 | | - | |
2714 | 2716 | | |
2715 | | - | |
2716 | | - | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
2717 | 2720 | | |
2718 | 2721 | | |
2719 | 2722 | | |
| |||
0 commit comments