Author: bapt
Date: Wed Mar  1 21:42:22 2017
New Revision: 314520
URL: https://svnweb.freebsd.org/changeset/base/314520

Log:
  Import dma snapshot from git 2017-02-10
  
  The only change is:
  use basename to select executable identity
  
  PR:           216910
  Submitted by: Andrej Ebert <and...@ebert.su>

Modified:
  head/contrib/dma/dma.c
Directory Properties:
  head/contrib/dma/   (props changed)

Modified: head/contrib/dma/dma.c
==============================================================================
--- head/contrib/dma/dma.c      Wed Mar  1 21:37:43 2017        (r314519)
+++ head/contrib/dma/dma.c      Wed Mar  1 21:42:22 2017        (r314520)
@@ -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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to