Changes: Two temp variables eliminated.

pull/1/head
Jussi Lind 15 years ago
parent 9a385e95ea
commit 9e1768ae1b

@ -174,17 +174,15 @@ int Booster::launchProcess()
if (!errno && cur_prio < m_app.priority())
setpriority(PRIO_PROCESS, 0, m_app.priority());
// Possible set user ID and group ID of calling process
uid_t uid = getuid();
gid_t gid = getgid();
// Set user ID and group ID of calling process if differing
// from the ones we got from invoker
if (uid != m_app.userId())
if (getuid() != m_app.userId())
setuid(m_app.userId());
if (gid != m_app.groupId())
if (getgid() != m_app.groupId())
setgid(m_app.groupId());
// Load the application and find out the address of main()
void* handle = loadMain();

Loading…
Cancel
Save