With this applied, you can do following:
$ cp kdbus-test daemon
$ cp kdbus-test send
Then run 'daemon' in one shell session:
$ ./daemon --bus test
...and 'send' in another:
$ ./send --bus test
Useful for testing features introduced by previous patches.
Signed-off-by: Paul Osmialowski <p.osmialowsk@samsung.com>
ARG_UIDMAP,
ARG_GIDMAP,
};
+ char *exec = basename(argv[0]);
kdbus_args = malloc(sizeof(*kdbus_args));
if (!kdbus_args) {
srand(time(NULL));
+ if (strcmp(exec, "kdbus-test") != 0) {
+ kdbus_args->test = exec;
+ }
+
while ((t = getopt_long(argc, argv, "hxfm:r:t:b:w:a", options, NULL)) >= 0) {
switch (t) {
case 'x':