unpacker: Fix logic error regression in previous commit

I spotted this warning go by in the build logs.  Let's make it
fatal from now on.

Closes: #536
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-12-06 14:22:54 -05:00 committed by Atomic Bot
parent 90fc84fb24
commit 977835fd41
2 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,7 @@ CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
-Werror=pointer-arith -Werror=init-self \
-Werror=missing-declarations \
-Werror=return-type \
-Werror=parenthesis \
-Werror=overflow \
-Werror=int-conversion \
-Werror=missing-include-dirs -Werror=aggregate-return \

View File

@ -590,8 +590,8 @@ compose_filter_cb (OstreeRepo *repo,
(void) get_rpmfi_override (self, path, &user, &group, NULL);
/* First, look for non-root paths in /run and /var */
if ((user != NULL || group != NULL)
&& g_str_has_prefix (path, "/run/") || g_str_has_prefix (path, "/var/"))
if ((user != NULL || group != NULL) &&
(g_str_has_prefix (path, "/run/") || g_str_has_prefix (path, "/var/")))
{
append_tmpfiles_d (self, path, file_info, user, group);
return OSTREE_REPO_COMMIT_FILTER_SKIP;