Two fixes for dtmail

This commit is contained in:
Ulrich Wilkens
2012-08-30 03:09:48 +02:00
committed by Jon Trulson
parent 3a28782409
commit 5c68d52ce4
3 changed files with 10 additions and 1 deletions

View File

@@ -133,8 +133,13 @@ class Application : public UIComponent {
virtual void shutdown() = 0;
// Functions to manipulate group execution privileges
#if defined(CSRG_BASED)
void disableGroupPrivileges(void) { (void) setegid(_originalRgid); }
void enableGroupPrivileges(void) { (void) setegid(_originalEgid); }
#else
void disableGroupPrivileges(void) { (void) setgid(_originalRgid); }
void enableGroupPrivileges(void) { (void) setgid(_originalEgid); }
#endif
gid_t originalEgid(void) { return _originalEgid; }
gid_t originalRgid(void) { return _originalRgid; }