summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5af6663..c3a4203 100644
--- a/main.c
+++ b/main.c
@@ -10,6 +10,8 @@
#include "aports-cache.h"
+static char *program_invocation_name;
+
static void usage(int exitcode)
{
printf("usage %s [OPTS] DIR\n"
@@ -40,6 +42,8 @@ int main(int argc, char *argv[])
int dirfd, rc;
char *shell_argv[] = {"/bin/sh", NULL};
+ program_invocation_name = argv[0];
+
while ((c = getopt_long(argc, argv, "fs:v", opts, &i)) != -1) {
switch(c) {