Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision 8dc72b643cb3edb6089248ae222ad67e5127d8f9)
+++ uspace/srv/loader/main.c	(revision 20f1597006e19ccb446878b9d52dd70c85ec74cc)
@@ -271,6 +271,10 @@
 static void loader_run(ipc_callid_t rid, ipc_call_t *request)
 {
+	const char *cp;
+
 	/* Set the task name. */
-	task_set_name(pathname);
+	cp = strrchr(pathname, '/');
+	cp = (cp == NULL) ? pathname : (cp + 1);
+	task_set_name(cp);
 
 	if (is_dyn_linked == true) {
