summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/uuencode/uuencode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c
index 5461d0e..e9225d4 100644
--- a/usr.bin/uuencode/uuencode.c
+++ b/usr.bin/uuencode/uuencode.c
@@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/in.h>
#include <err.h>
+#include <libgen.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
@@ -83,7 +84,7 @@ main(int argc, char *argv[])
base64 = 0;
outfile = NULL;
- if (strcmp(argv[0], "b64encode") == 0)
+ if (strcmp(basename(argv[0]), "b64encode") == 0)
base64 = 1;
while ((ch = getopt(argc, argv, "mo:")) != -1) {
OpenPOWER on IntegriCloud