gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r987 - GNUnet/src/conf


From: durner
Subject: [GNUnet-SVN] r987 - GNUnet/src/conf
Date: Fri, 24 Jun 2005 13:13:17 -0700 (PDT)

Author: durner
Date: 2005-06-24 13:13:13 -0700 (Fri, 24 Jun 2005)
New Revision: 987

Modified:
   GNUnet/src/conf/wizard_util.c
Log:
users may not have /sbin in their path, but they might be allowed to run 
ifconfig

Modified: GNUnet/src/conf/wizard_util.c
===================================================================
--- GNUnet/src/conf/wizard_util.c       2005-06-24 20:07:49 UTC (rev 986)
+++ GNUnet/src/conf/wizard_util.c       2005-06-24 20:13:13 UTC (rev 987)
@@ -41,7 +41,11 @@
                char entry[11], *dst;
                FILE *f = popen("ifconfig 2> /dev/null", "r");
                if (!f)
-                       return;
+               {
+                       f = popen("/sbin/ifconfig 2> /dev/null", "r");
+                       if (!f)
+                               return;
+               }
                        
                while(1)
                {





reply via email to

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