From 3e7f9c00c55b795def0c70fd2de5fc37aa2495ca Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 14 Sep 2012 14:20:03 -0500 Subject: Add a small binary to be the wrapper --- uccsconfigure-session-wrapper.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 uccsconfigure-session-wrapper.c (limited to 'uccsconfigure-session-wrapper.c') diff --git a/uccsconfigure-session-wrapper.c b/uccsconfigure-session-wrapper.c new file mode 100644 index 0000000..8a4ade3 --- /dev/null +++ b/uccsconfigure-session-wrapper.c @@ -0,0 +1,7 @@ + +int +main (int argc, char * argv[]) +{ + + return 0; +} -- cgit v1.2.3 From c9967bd1db22e665744e9752acacd659911c3276 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 14 Sep 2012 14:28:15 -0500 Subject: Fleshing out the wrapper --- uccsconfigure-session-wrapper.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'uccsconfigure-session-wrapper.c') diff --git a/uccsconfigure-session-wrapper.c b/uccsconfigure-session-wrapper.c index 8a4ade3..f1cdf10 100644 --- a/uccsconfigure-session-wrapper.c +++ b/uccsconfigure-session-wrapper.c @@ -1,7 +1,14 @@ +#include +#include int main (int argc, char * argv[]) { + char * args[2]; + args[0] = PKGDATADIR "/uccsconfigure-session"; + args[1] = NULL; + + execvp(args[0], args); return 0; } -- cgit v1.2.3 From ce3c9ddf69f4d651527a1895562a5633bafd581f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 14 Sep 2012 14:30:10 -0500 Subject: Copyright header --- uccsconfigure-session-wrapper.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'uccsconfigure-session-wrapper.c') diff --git a/uccsconfigure-session-wrapper.c b/uccsconfigure-session-wrapper.c index f1cdf10..dbe8023 100644 --- a/uccsconfigure-session-wrapper.c +++ b/uccsconfigure-session-wrapper.c @@ -1,3 +1,21 @@ +/* + * Copyright © 2012 Canonical Ltd. + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranties of + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + * + * Author: Ted Gould + */ + #include #include -- cgit v1.2.3