[gnome-control-center] Make it possible to override SSHD_SERVICE
- From: Michael Biebl <mbiebl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Make it possible to override SSHD_SERVICE
- Date: Sun, 28 Jun 2015 21:20:47 +0000 (UTC)
commit 1f4f6ded0fd4a1cc333148c7e4ab11b9631e4779
Author: Michael Biebl <biebl debian org>
Date: Sun Jun 28 13:02:25 2015 +0200
Make it possible to override SSHD_SERVICE
Upstream of openssh does not yet ship a systemd service file, so distros
add them downstream and unfortunately use different names: E.g. on
Fedora the unit is called sshd.service, on Debian/Ubuntu it is called
ssh.service.
Therefore make it possible to override SSHD_SERVICE via CFLAGS.
https://bugzilla.gnome.org/show_bug.cgi?id=751326
panels/sharing/cc-remote-login-helper.c | 3 +++
panels/sharing/cc-remote-login.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/sharing/cc-remote-login-helper.c b/panels/sharing/cc-remote-login-helper.c
index 6eb88db..87c12f3 100644
--- a/panels/sharing/cc-remote-login-helper.c
+++ b/panels/sharing/cc-remote-login-helper.c
@@ -20,7 +20,10 @@
*/
#include <gio/gio.h>
+
+#ifndef SSHD_SERVICE
#define SSHD_SERVICE "sshd.service"
+#endif
static const gchar *service_list[] = { SSHD_SERVICE, NULL };
diff --git a/panels/sharing/cc-remote-login.c b/panels/sharing/cc-remote-login.c
index b9de0b3..e91fd50 100644
--- a/panels/sharing/cc-remote-login.c
+++ b/panels/sharing/cc-remote-login.c
@@ -21,7 +21,9 @@
#include "cc-remote-login.h"
#include <gio/gio.h>
+#ifndef SSHD_SERVICE
#define SSHD_SERVICE "sshd.service"
+#endif
typedef struct
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]