Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 612531 Details for
Bug 856975
Obscure systemctl error: failed to issue method call: Invalid argument
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Appends .service when enable/disable... called
0001-systemctl-append-service-when-enable-disable-called.patch (text/plain), 1.88 KB, created by
Václav Pavlín
on 2012-09-13 17:46:19 UTC
(
hide
)
Description:
Appends .service when enable/disable... called
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-09-13 17:46:19 UTC
Size:
1.88 KB
patch
obsolete
>From 41fb01d14bef93f9a3262e271a73db0f8cb209aa Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?V=C3=A1clav=20Pavl=C3=ADn?= <vpavlin@redhat.com> >Date: Thu, 13 Sep 2012 15:57:51 +0200 >Subject: [PATCH] systemctl: append .service when enable/disable called > (#856975) > >--- > src/systemctl/systemctl.c | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > >diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c >index 55202c7..46c97eb 100644 >--- a/src/systemctl/systemctl.c >+++ b/src/systemctl/systemctl.c >@@ -3559,6 +3559,7 @@ static int enable_unit(DBusConnection *bus, char **args) { > DBusMessage *m = NULL, *reply = NULL; > int r; > DBusError error; >+ char **mangled_names = NULL, **mangled_names_it = NULL, **name = NULL; > > r = enable_sysv_units(args); > if (r < 0) >@@ -3644,7 +3645,17 @@ static int enable_unit(DBusConnection *bus, char **args) { > > dbus_message_iter_init_append(m, &iter); > >- r = bus_append_strv_iter(&iter, args+1); >+ mangled_names = new(char*, strv_length(args+1)+1); >+ mangled_names_it = mangled_names; >+ >+ STRV_FOREACH(name, args+1) { >+ char *n = unit_name_mangle(*name); >+ (*mangled_names_it) = n ? n : strdup(*name); >+ mangled_names_it++; >+ } >+ mangled_names_it = NULL; >+ >+ r = bus_append_strv_iter(&iter, mangled_names); > if (r < 0) { > log_error("Failed to append unit files."); > goto finish; >@@ -3744,6 +3755,13 @@ finish: > unit_file_changes_free(changes, n_changes); > > dbus_error_free(&error); >+ >+ STRV_FOREACH(name, mangled_names) { >+ free(*name); >+ } >+ >+ free(mangled_names); >+ > return r; > } > >-- >1.7.11.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 856975
:
612463
|
612531
|
612613