dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
4bff0a
From 8c937623864721345a5789d664775416723b6614 Mon Sep 17 00:00:00 2001
4bff0a
From: Lennart Poettering <lennart@poettering.net>
4bff0a
Date: Thu, 5 Jul 2018 10:00:52 +0200
4bff0a
Subject: [PATCH] execute: use our usual syntax for defining bit masks
4bff0a
4bff0a
(cherry picked from commit ce0d60a7c4e07c5bdfed9f076bd48752287f0777)
4bff0a
4bff0a
Resolves: #1683334
4bff0a
---
4bff0a
 src/core/execute.h | 8 ++++----
4bff0a
 1 file changed, 4 insertions(+), 4 deletions(-)
4bff0a
4bff0a
diff --git a/src/core/execute.h b/src/core/execute.h
4bff0a
index 49705e0d3a..f24dbf581a 100644
4bff0a
--- a/src/core/execute.h
4bff0a
+++ b/src/core/execute.h
4bff0a
@@ -85,10 +85,10 @@ struct ExecStatus {
4bff0a
 };
4bff0a
 
4bff0a
 typedef enum ExecCommandFlags {
4bff0a
-        EXEC_COMMAND_IGNORE_FAILURE = 1,
4bff0a
-        EXEC_COMMAND_FULLY_PRIVILEGED = 2,
4bff0a
-        EXEC_COMMAND_NO_SETUID = 4,
4bff0a
-        EXEC_COMMAND_AMBIENT_MAGIC = 8,
4bff0a
+        EXEC_COMMAND_IGNORE_FAILURE   = 1 << 0,
4bff0a
+        EXEC_COMMAND_FULLY_PRIVILEGED = 1 << 1,
4bff0a
+        EXEC_COMMAND_NO_SETUID        = 1 << 2,
4bff0a
+        EXEC_COMMAND_AMBIENT_MAGIC    = 1 << 3,
4bff0a
 } ExecCommandFlags;
4bff0a
 
4bff0a
 struct ExecCommand {