}
static int
-verify_write_or_copyup (const char *path, const struct statx *stbuf, gboolean *out_did_copyup)
+verify_write_or_copyup (const char *path, const struct statx *stbuf)
{
struct statx stbuf_local;
- if (out_did_copyup)
- *out_did_copyup = FALSE;
/* If a stbuf wasn't provided, gather it now */
if (!stbuf)
g_autoptr (GError) tmp_error = NULL;
if (!copyup (basefd, path, stbuf, &tmp_error))
return -gioerror_to_errno ((GIOErrorEnum)tmp_error->code);
- if (out_did_copyup)
- *out_did_copyup = TRUE;
}
else
return -EROFS;
do \
{ \
path = ENSURE_RELPATH (path); \
- int r = verify_write_or_copyup (path, NULL, NULL); \
+ int r = verify_write_or_copyup (path, NULL); \
if (r != 0) \
return r; \
} \
}
else
{
- gboolean did_copyup;
- int r = verify_write_or_copyup (path, &stbuf, &did_copyup);
+ int r = verify_write_or_copyup (path, &stbuf);
if (r != 0)
return r;
}