mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Make getuid/geteuid return 1000 to "look like" a non-root user.
This commit is contained in:
@@ -931,15 +931,13 @@ int getentropy(void *buffer, size_t length) {
|
||||
|
||||
#ifdef F_getuid
|
||||
uid_t getuid(void) {
|
||||
/* Not sure if returning root is a good idea */
|
||||
return 0;
|
||||
return 1000;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef F_geteuid
|
||||
uid_t geteuid(void) {
|
||||
/* Not sure if returning root is a good idea */
|
||||
return 0;
|
||||
return 1000;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user