bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rpctrace bug (Was: Re: Debugging help)


From: Niels Möller
Subject: rpctrace bug (Was: Re: Debugging help)
Date: 10 Jun 2002 22:13:40 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

This is a complete test program for the rpctrace problem.

----8<--------
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#include <unistd.h>

int
main(int argc, char **argv)
{
  if (access("/bin/ls", X_OK) < 0)
    {
      printf("/bin/ls not executable, according to access: %s\n",
             strerror(errno));
      return EXIT_FAILURE;
    }
  else
    {
      printf("/bin/ls is executable\n");
      return EXIT_SUCCESS;
    }
}
----8<--------

Run as follows,

  address@hidden:~/hack/lsh/src$ rpctrace -o/dev/null ./a.out
  /bin/ls not executable, according to access: (ipc/mig) server type check 
failure
  address@hidden:~/hack/lsh/src$ ./a.out
  /bin/ls is executable

Regards,
/Niels



reply via email to

[Prev in Thread] Current Thread [Next in Thread]