external/ppp
Revision | 7d489dfca86e16659d5e24d46b185652e0e366c4 (tree) |
---|---|
Zeit | 2009-07-03 06:24:59 |
Autor | Chia-chi Yeh <chiachi@andr...> |
Commiter | The Android Open Source Project |
am dffa1806: pppd: Remove the UID check to allow running as a non-root user.
Merge commit 'dffa18062629fab18e536d21fe5f8b8f07c7e991'
* commit 'dffa18062629fab18e536d21fe5f8b8f07c7e991':
@@ -364,6 +364,7 @@ main(argc, argv) | ||
364 | 364 | { |
365 | 365 | extern void pppox_init(); |
366 | 366 | pppox_init(); |
367 | + privileged = 1; | |
367 | 368 | } |
368 | 369 | #endif |
369 | 370 |
@@ -398,6 +399,7 @@ main(argc, argv) | ||
398 | 399 | if (debug) |
399 | 400 | setlogmask(LOG_UPTO(LOG_DEBUG)); |
400 | 401 | |
402 | +#ifndef ANDROID_CHANGES | |
401 | 403 | /* |
402 | 404 | * Check that we are running as root. |
403 | 405 | */ |
@@ -406,6 +408,7 @@ main(argc, argv) | ||
406 | 408 | argv[0]); |
407 | 409 | exit(EXIT_NOT_ROOT); |
408 | 410 | } |
411 | +#endif | |
409 | 412 | |
410 | 413 | if (!ppp_available()) { |
411 | 414 | option_error("%s", no_ppp_msg); |