gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19464 - gnunet/src/vpn


From: gnunet
Subject: [GNUnet-SVN] r19464 - gnunet/src/vpn
Date: Thu, 26 Jan 2012 23:54:59 +0100

Author: grothoff
Date: 2012-01-26 23:54:59 +0100 (Thu, 26 Jan 2012)
New Revision: 19464

Modified:
   gnunet/src/vpn/test_gnunet_vpn.c
Log:
-warn if permissions are insufficient to run test

Modified: gnunet/src/vpn/test_gnunet_vpn.c
===================================================================
--- gnunet/src/vpn/test_gnunet_vpn.c    2012-01-26 22:50:42 UTC (rev 19463)
+++ gnunet/src/vpn/test_gnunet_vpn.c    2012-01-26 22:54:59 UTC (rev 19464)
@@ -475,6 +475,18 @@
   struct GNUNET_GETOPT_CommandLineOption options[] = {
     GNUNET_GETOPT_OPTION_END
   };
+
+  if ( (GNUNET_YES !=
+       GNUNET_OS_check_helper_binary ("gnunet-helper-vpn")) ||
+       (GNUNET_YES !=
+       GNUNET_OS_check_helper_binary ("gnunet-helper-exit")) )
+  {
+    fprintf (stderr,
+            "WARNING: gnunet-helper-{exit,vpn} binaries in $PATH are not SUID, 
refusing to run test (as it would have to fail).\n");
+    fprintf (stderr,
+            "Change $PATH ('.' in $PATH before $GNUNET_PREFIX/bin is 
problematic) or permissions (run 'make install' as root) to fix this!\n");
+    return 0;
+  }
   bin = argv[0];
   if (NULL != strstr (bin, "lt-"))
     bin = strstr (bin, "lt-") + 4;




reply via email to

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