mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Import dma snapshot from git 2017-02-10
The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert <andrej@ebert.su>
This commit is contained in:
parent
bf3a47a7ab
commit
598ad97271
1 changed files with 2 additions and 1 deletions
3
dma.c
3
dma.c
|
|
@ -47,6 +47,7 @@
|
|||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <libgen.h>
|
||||
#include <paths.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue