| 87 | #define RETURN_ERROR_IF_RO_OR_LO RETURN_ERROR_IF(read_only || list_only, EROFS) |
| 88 | |
| 89 | int do_unlink(const char *path) |
| 90 | { |
| 91 | if (dry_run) return 0; |
| 92 | RETURN_ERROR_IF_RO_OR_LO; |
| 93 | return unlink(path); |
| 94 | } |
| 95 | |
| 96 | /* |
| 97 | Symlink-race-safe variant of do_unlink() for receiver-side use. See |
no outgoing calls
no test coverage detected