lib/util: Delete some leftover pre-libglnx directory opening functions
These were migrated into libglnx; port the few callers to use that. Closes: #808 Approved by: jlebon
This commit is contained in:
1 parent
55603a0c52
commit
f2e92d81f9
4 files changed
+3
-36
No files matched your search
@@ -2465,7 +2465,7 @@ list_loose_objects (OstreeRepo *self,
|
||||
buf[0] = hexchars[c >> 4];
|
||||
buf[1] = hexchars[c & 0xF];
|
||||
buf[2] = '\0';
|
||||
dfd = ot_opendirat (self->objects_dir_fd, buf, FALSE);
|
||||
dfd = glnx_opendirat_with_errno (self->objects_dir_fd, buf, FALSE);
|
||||
if (dfd == -1)
|
||||
{
|
||||
if (errno == ENOENT)
|
||||
|
||||
@@ -255,7 +255,7 @@ ensure_directory_from_template (int orig_etc_fd,
|
||||
g_assert (path != NULL);
|
||||
g_assert (*path != '/' && *path != '\0');
|
||||
|
||||
if (!ot_gopendirat (modified_etc_fd, path, TRUE, &src_dfd, error))
|
||||
if (!glnx_opendirat (modified_etc_fd, path, TRUE, &src_dfd, error))
|
||||
goto out;
|
||||
|
||||
/* Create with mode 0700, we'll fchmod/fchown later */
|
||||
@@ -293,7 +293,7 @@ ensure_directory_from_template (int orig_etc_fd,
|
||||
}
|
||||
}
|
||||
|
||||
if (!ot_gopendirat (new_etc_fd, path, TRUE, &target_dfd, error))
|
||||
if (!glnx_opendirat (new_etc_fd, path, TRUE, &target_dfd, error))
|
||||
goto out;
|
||||
|
||||
if (!dirfd_copy_attributes_and_xattrs (modified_etc_fd, path, src_dfd, target_dfd,
|
||||
|
||||
Reference in new issue
Block a user