Fixes Coverity CID #
1457317
Closes: #1249
Approved by: jlebon
Origin: upstream, 2017.13, commit:
351ffdb9778436b193ba9d2fbeebe2358e55004f
Gbp-Pq: Topic 2017.13
Gbp-Pq: Name lib-sysroot-Fix-pointer-going-out-of-scope-in-unlock-code.patch
return FALSE;
const char *ovl_options = NULL;
+ static const char hotfix_ovl_options[] = "lowerdir=usr,upperdir=.usr-ovl-upper,workdir=.usr-ovl-work";
switch (unlocked_state)
{
case OSTREE_DEPLOYMENT_UNLOCKED_NONE:
break;
case OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX:
{
- const char hotfix_ovl_options[] = "lowerdir=usr,upperdir=.usr-ovl-upper,workdir=.usr-ovl-work";
/* Create the overlayfs directories in the deployment root
* directly for hotfixes. The ostree-prepare-root.c helper
* is also set up to detect and mount these.