summaryrefslogtreecommitdiff
path: root/bus/activation-helper-bin.c
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-10-09 08:50:37 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-10-09 10:51:39 +0100
commit867bdd890fc3e4da9246932461203a682ad6ec70 (patch)
tree7bcd6b833a756f24839ebebb0febea0a3bfd5722 /bus/activation-helper-bin.c
parent76c5deff5c50c118e40fcfd245f60f1b4f7c4cbd (diff)
downloaddbus-867bdd890fc3e4da9246932461203a682ad6ec70.tar.gz
launch-helper: fix error code parsing
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66728 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus/activation-helper-bin.c')
-rw-r--r--bus/activation-helper-bin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bus/activation-helper-bin.c b/bus/activation-helper-bin.c
index a360acc7..f5f16d2c 100644
--- a/bus/activation-helper-bin.c
+++ b/bus/activation-helper-bin.c
@@ -45,6 +45,9 @@ convert_error_to_exit_code (DBusError *error)
return BUS_SPAWN_EXIT_CODE_SETUP_FAILED;
if (dbus_error_has_name (error, DBUS_ERROR_SPAWN_SERVICE_INVALID))
+ return BUS_SPAWN_EXIT_CODE_NAME_INVALID;
+
+ if (dbus_error_has_name (error, DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND))
return BUS_SPAWN_EXIT_CODE_SERVICE_NOT_FOUND;
if (dbus_error_has_name (error, DBUS_ERROR_SPAWN_PERMISSIONS_INVALID))
@@ -65,7 +68,7 @@ convert_error_to_exit_code (DBusError *error)
/* should we assert? */
fprintf(stderr, "%s: %s\n", error->name, error->message);
- return BUS_SPAWN_EXIT_CODE_SETUP_FAILED;
+ return BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE;
}
int