+2004-10-20 Jim Blandy <jimb@redhat.com>
+
+ * server.c (usage): Don't include the entire pathname in the usage
+ message.
+
2004-10-19 Jim Blandy <jimb@redhat.com>
* thread-db.c (get_thread_signals): Doc fix.
static void
usage (char *progname)
{
+ /* Remove any leading slashes from the executable name. */
+ if (strrchr (progname, '/'))
+ progname = strrchr (progname, '/') + 1;
+
fprintf (stderr,
"Usage: %s [-v] tcp-port-num executable-file [arguments ...]\n"
" or: %s -a [-v] tcp-port-num process-id\n"