]> git.itanic.dy.fi Git - scan-pagemap/commit
main: Use geteuid instead of getuid
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Mon, 16 Aug 2010 20:02:16 +0000 (23:02 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Mon, 16 Aug 2010 20:02:16 +0000 (23:02 +0300)
commitbc25cfea7c6b689b6fa0c10825b45d0d1629c53a
tree8562873de68ae0e7aa0f3b512e6862696ab700fe
parent70726de93e4e5e8322ba6bd3f8334a51522dc797
main: Use geteuid instead of getuid

The effective used ID is what matters, since if someone uses setuid
bit to run the binary as root, the euid will be 0 but uid might not.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c