Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
systemd-mini.1059
0002-systemctl-obey-state-in-list-unit-files.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-systemctl-obey-state-in-list-unit-files.patch of Package systemd-mini.1059
From fec1530e6b5b8d6dc352c7338010357126e84621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> Date: Wed, 29 Oct 2014 22:51:00 -0400 Subject: [PATCH] systemctl: obey --state in list-unit-files --- src/systemctl/systemctl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git src/systemctl/systemctl.c src/systemctl/systemctl.c index b71040b..8481a9b 100644 --- src/systemctl/systemctl.c +++ src/systemctl/systemctl.c @@ -1268,6 +1268,11 @@ next: return false; } + if (!strv_isempty(arg_states)) { + if (!strv_find(arg_states, unit_file_state_to_string(u->state))) + return false; + } + return true; } -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor