MCPcopy Create free account
hub / github.com/RsyncProject/rsync / do_unlink

Function do_unlink

syscall.c:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87#define RETURN_ERROR_IF_RO_OR_LO RETURN_ERROR_IF(read_only || list_only, EROFS)
88
89int 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

Callers 2

successful_sendFunction · 0.85
do_unlink_atFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected