From d6d2253f5a41145ed4ed008150bca38c2a8f6b0a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 7 Mar 2013 16:46:41 -0500 Subject: [PATCH] admin: Fix lookup of active root This should hopefully *really* fix deleting running deployments https://bugzilla.gnome.org/show_bug.cgi?id=694762 --- src/ostree/ot-admin-functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-admin-functions.c b/src/ostree/ot-admin-functions.c index c642ab84..f28ea73c 100644 --- a/src/ostree/ot-admin-functions.c +++ b/src/ostree/ot-admin-functions.c @@ -406,7 +406,7 @@ ot_admin_get_active_deployment (GFile *ostree_dir, guint32 deploy_dev; guint64 deploy_inode; - deployment_info = g_file_query_info (rootfs_path, OSTREE_GIO_FAST_QUERYINFO, + deployment_info = g_file_query_info (deployment, OSTREE_GIO_FAST_QUERYINFO, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, error); if (!deployment_info)