diff options
Diffstat (limited to 'guts/getresuid.c')
-rw-r--r-- | guts/getresuid.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/guts/getresuid.c b/guts/getresuid.c new file mode 100644 index 0000000..2976f78 --- /dev/null +++ b/guts/getresuid.c @@ -0,0 +1,20 @@ +/* + * static int + * wrap_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) { + * int rc = -1; + */ + if (ruid) + *ruid = pseudo_ruid; + if (euid) + *euid = pseudo_euid; + if (suid) + *suid = pseudo_suid; + if (ruid && euid && suid) { + rc = 0; + } else { + rc = -1; + errno = EFAULT; + } +/* return rc; + * } + */ |