[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Documentation bug in libc.info(Enable/Disable Setuid)
From: |
Sam Roberts |
Subject: |
Documentation bug in libc.info(Enable/Disable Setuid) |
Date: |
Fri, 5 Apr 2002 13:31:36 -0500 |
User-agent: |
Mutt/1.3.16i |
The documentation reads:
In order to handle both kinds of systems, test for the saved user ID
feature with a preprocessor conditional, like this:
#ifdef _POSIX_SAVED_IDS
setuid (user_user_id);
#else
setreuid (geteuid (), getuid ());
#endif
setuid() should be seteuid(), to set the effective uid!
The next node shows this code snippet in the correct form.
Thanks,
Sam
- Documentation bug in libc.info(Enable/Disable Setuid),
Sam Roberts <=