Ignore:
Timestamp:
10/17/06 11:18:16 (16 years ago)
Author:
bas
Message:

EmailtoTracScript?:

run_email2trac.c:

  • setgid() must be called before setuid()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/run_email2trac.c

    r110 r125  
    109109  check_username(TRAC_USER);
    110110  if ( TRAC = getpwnam(TRAC_USER) ) {
     111    setgid(TRAC->pw_gid);
    111112    setuid(TRAC->pw_uid);
    112     setgid(TRAC->pw_gid);
    113113  } else {
    114114    if ( DEBUG ) printf("Invalid Trac user (%s)\n",TRAC_USER);
Note: See TracChangeset for help on using the changeset viewer.