summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-01 10:02:14 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-19 21:04:57 +0200
commitd2a236929b1f23918f7e70af9b9ac1fef14edcf2 (patch)
treecd28630583d5276d6ac2686ad63b56c83e22db9b
parentcd826afaf3d3ee76f156dd186abbdcbf4af43023 (diff)
downloadsystemd-d2a236929b1f23918f7e70af9b9ac1fef14edcf2.tar.gz
core: remove one {}
-rw-r--r--src/core/dbus-execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
index c816569f2b..a92897081e 100644
--- a/src/core/dbus-execute.c
+++ b/src/core/dbus-execute.c
@@ -1368,10 +1368,10 @@ int bus_exec_context_set_transient_property(
if (r < 0)
return r;
- STRV_FOREACH(p, l) {
+ STRV_FOREACH(p, l)
if (!isempty(*p) && !valid_user_group_name_or_id(*p))
- return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid supplementary group names");
- }
+ return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS,
+ "Invalid supplementary group names");
if (!UNIT_WRITE_FLAGS_NOOP(flags)) {
if (strv_isempty(l)) {