#include <sys/stat.h>
#include "argp.h"
-#include "dirname.h"
+#include "progname.h"
#include "gettext.h"
#define _(String) gettext (String)
#include "descriptions.h"
#include "ult_src.h"
-char *program_name;
int quiet = 1;
man_sandbox *sandbox;
int i;
int some_failed = 0;
- program_name = base_name (argv[0]);
+ set_program_name (argv[0]);
init_debug ();
pipeline_install_post_fork (pop_all_cleanups);
file = ult_src (files[i], path ? path : ".",
&statbuf, SO_LINK, NULL);
- if (path)
- free (path);
+ free (path);
}
if (file && find_name (file, "-", &lg, encoding)) {