Merge pull request #34799 from YHNdnzj/service-followups

core: follow-ups for live mount
This commit is contained in:
Mike Yuan
2024-10-24 19:44:10 +02:00
committed by GitHub
10 changed files with 108 additions and 107 deletions
-11
View File
@@ -694,17 +694,6 @@ int access_fd(int fd, int mode) {
return 0;
}
void unlink_tempfilep(char (*p)[]) {
assert(p);
/* If the file is created with mkstemp(), it will (almost always)
* change the suffix. Treat this as a sign that the file was
* successfully created. We ignore both the rare case where the
* original suffix is used and unlink failures. */
if (!endswith(*p, ".XXXXXX"))
(void) unlink(*p);
}
int unlinkat_deallocate(int fd, const char *name, UnlinkDeallocateFlags flags) {
_cleanup_close_ int truncate_fd = -EBADF;
struct stat st;