tree-wide: Use helpers for unlinkat()
We have `ot_ensure_unlinked_at()` for the "ignore ENOENT" case, and `glnx_unlinkat()` otherwise. Port all in-tree callers to one or the other as appropriate. Just noticed an unprefixed error in the refs case and decided to do a tree-wide check. Closes: #1142 Approved by: jlebon
This commit is contained in:
1 parent
57509e4d50
commit
303320163f
6 files changed
+16
-36
No files matched your search
@@ -90,6 +90,7 @@ ot_openat_read_stream (int dfd,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Like unlinkat() but ignore ENOENT */
|
||||
gboolean
|
||||
ot_ensure_unlinked_at (int dfd,
|
||||
const char *path,
|
||||
|
||||
Reference in new issue
Block a user