• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/ppp


Commit MetaInfo

Revision7d489dfca86e16659d5e24d46b185652e0e366c4 (tree)
Zeit2009-07-03 06:24:59
AutorChia-chi Yeh <chiachi@andr...>
CommiterThe Android Open Source Project

Log Message

am dffa1806: pppd: Remove the UID check to allow running as a non-root user.

Merge commit 'dffa18062629fab18e536d21fe5f8b8f07c7e991'

* commit 'dffa18062629fab18e536d21fe5f8b8f07c7e991':

pppd: Remove the UID check to allow running as a non-root user.

Ändern Zusammenfassung

Diff

--- a/pppd/main.c
+++ b/pppd/main.c
@@ -364,6 +364,7 @@ main(argc, argv)
364364 {
365365 extern void pppox_init();
366366 pppox_init();
367+ privileged = 1;
367368 }
368369 #endif
369370
@@ -398,6 +399,7 @@ main(argc, argv)
398399 if (debug)
399400 setlogmask(LOG_UPTO(LOG_DEBUG));
400401
402+#ifndef ANDROID_CHANGES
401403 /*
402404 * Check that we are running as root.
403405 */
@@ -406,6 +408,7 @@ main(argc, argv)
406408 argv[0]);
407409 exit(EXIT_NOT_ROOT);
408410 }
411+#endif
409412
410413 if (!ppp_available()) {
411414 option_error("%s", no_ppp_msg);