From 598ad972718c41f5438bf7654286bbce15c9cea1 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 1 Mar 2017 21:35:25 +0000 Subject: Import dma snapshot from git 2017-02-10 The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert --- dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dma.c b/dma.c index b87b20245583..e643e0f4ac9b 100644 --- a/dma.c +++ b/dma.c @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -457,7 +458,7 @@ main(int argc, char **argv) bzero(&queue, sizeof(queue)); LIST_INIT(&queue.queue); - if (strcmp(argv[0], "mailq") == 0) { + if (strcmp(basename(argv[0]), "mailq") == 0) { argv++; argc--; showq = 1; if (argc != 0) -- cgit v1.2.3