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,

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

Regards,
/Niels

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to