|
|
2f13d7 |
From 845b5c3882b1eecb31d712b61a4e91fe0eb70712 Mon Sep 17 00:00:00 2001
|
|
|
2f13d7 |
From: Matthew Almond <malmond@fb.com>
|
|
|
2f13d7 |
Date: Sun, 31 Jan 2021 12:30:33 -0800
|
|
|
2f13d7 |
Subject: [PATCH 02/30] Remove use of bool type for consistency
|
|
|
2f13d7 |
|
|
|
2f13d7 |
---
|
|
|
2f13d7 |
lib/fsm.c | 9 ++++-----
|
|
|
2f13d7 |
1 file changed, 4 insertions(+), 5 deletions(-)
|
|
|
2f13d7 |
|
|
|
2f13d7 |
diff --git a/lib/fsm.c b/lib/fsm.c
|
|
|
2f13d7 |
index 90193c749..feda3750c 100644
|
|
|
2f13d7 |
--- a/lib/fsm.c
|
|
|
2f13d7 |
+++ b/lib/fsm.c
|
|
|
2f13d7 |
@@ -8,7 +8,6 @@
|
|
|
2f13d7 |
|
|
|
2f13d7 |
#include <utime.h>
|
|
|
2f13d7 |
#include <errno.h>
|
|
|
2f13d7 |
-#include <stdbool.h>
|
|
|
2f13d7 |
#if WITH_CAP
|
|
|
2f13d7 |
#include <sys/capability.h>
|
|
|
2f13d7 |
#endif
|
|
|
2f13d7 |
@@ -896,10 +895,10 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files,
|
|
|
2f13d7 |
|
|
|
2f13d7 |
Header h = rpmteHeader(te);
|
|
|
2f13d7 |
const char *payloadfmt = headerGetString(h, RPMTAG_PAYLOADFORMAT);
|
|
|
2f13d7 |
- bool cpio = true;
|
|
|
2f13d7 |
+ int cpio = 1;
|
|
|
2f13d7 |
|
|
|
2f13d7 |
if (payloadfmt && rstreq(payloadfmt, "clon")) {
|
|
|
2f13d7 |
- cpio = false;
|
|
|
2f13d7 |
+ cpio = 0;
|
|
|
2f13d7 |
}
|
|
|
2f13d7 |
|
|
|
2f13d7 |
/* transaction id used for temporary path suffix while installing */
|
|
|
2f13d7 |
@@ -927,13 +926,13 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files,
|
|
|
2f13d7 |
/* Run fsm file pre hook for all plugins */
|
|
|
2f13d7 |
rc = rpmpluginsCallFsmFilePre(plugins, fi, fp->fpath,
|
|
|
2f13d7 |
fp->sb.st_mode, fp->action);
|
|
|
2f13d7 |
- fp->plugin_contents = false;
|
|
|
2f13d7 |
+ fp->plugin_contents = 0;
|
|
|
2f13d7 |
switch (rc) {
|
|
|
2f13d7 |
case RPMRC_OK:
|
|
|
2f13d7 |
setFileState(fs, fx);
|
|
|
2f13d7 |
break;
|
|
|
2f13d7 |
case RPMRC_PLUGIN_CONTENTS:
|
|
|
2f13d7 |
- fp->plugin_contents = true;
|
|
|
2f13d7 |
+ fp->plugin_contents = 1;
|
|
|
2f13d7 |
// reduce reads on cpio to this value. Could be zero if
|
|
|
2f13d7 |
// this is from a hard link.
|
|
|
2f13d7 |
rc = RPMRC_OK;
|
|
|
2f13d7 |
--
|
|
|
2f13d7 |
2.35.1
|
|
|
2f13d7 |
|