tree-wide: Some glnx_fstatat_allow_noent() porting
The new API is definitely nicer. Closes: #1180 Approved by: jlebon
This commit is contained in:
1 parent
c62b36046b
commit
13c3898cc2
7 files changed
+55
-100
No files matched your search
@@ -1249,12 +1249,10 @@ cleanup_tmpdir (OstreeRepo *self,
|
||||
if (strcmp (dent->d_name, "cache") == 0)
|
||||
continue;
|
||||
|
||||
if (TEMP_FAILURE_RETRY (fstatat (dfd_iter.fd, dent->d_name, &stbuf, AT_SYMLINK_NOFOLLOW)) < 0)
|
||||
{
|
||||
if (errno == ENOENT) /* Did another cleanup win? */
|
||||
continue;
|
||||
return glnx_throw_errno_prefix (error, "fstatat(%s)", dent->d_name);
|
||||
}
|
||||
if (!glnx_fstatat_allow_noent (dfd_iter.fd, dent->d_name, &stbuf, AT_SYMLINK_NOFOLLOW, error))
|
||||
return FALSE;
|
||||
if (errno == ENOENT) /* Did another cleanup win? */
|
||||
continue;
|
||||
|
||||
/* First, if it's a directory which needs locking, but it's
|
||||
* busy, skip it.
|
||||
|
||||
Reference in new issue
Block a user