#include <stdlib.h>
#include "argp.h"
-#include "dirname.h"
+#include "progname.h"
#include "gettext.h"
#define _(String) gettext (String)
#include "globbing.h"
#include "sandbox.h"
-char *program_name;
man_sandbox *sandbox; /* unused, but needed by libman */
extern const char *extension;
{
int i;
- program_name = base_name (argv[0]);
+ set_program_name (argv[0]);
init_debug ();
init_locale ();