mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-10 05:18:30 +03:00
deploy: Ensure boot directory is open before accessing it
This fixes a bug in the (early) deployment pruning function which before tried to access the boot directory without opening it first. Signed-off-by: Rogerio Guerra Borin <rogerio.borin@toradex.com>
This commit is contained in:
parent
223a1af4b5
commit
4efb44f35a
@ -2641,6 +2641,9 @@ auto_early_prune_old_deployments (OstreeSysroot *self, GPtrArray *new_deployment
|
||||
if (self->booted_deployment == NULL)
|
||||
return TRUE;
|
||||
|
||||
if (!_ostree_sysroot_ensure_boot_fd (self, error))
|
||||
return FALSE;
|
||||
|
||||
{
|
||||
struct stat stbuf;
|
||||
if (!glnx_fstatat (self->boot_fd, ".", &stbuf, 0, error))
|
||||
|
Loading…
Reference in New Issue
Block a user