--- src/sendfiled.c 2008-03-11 11:52:06.000000000 -0500
+++ src/sendfiled.c 2008-05-09 04:52:55.000000000 -0500
* 1997-01-30 Framstag better SIZE parsing
* 1997-02-03 Framstag sprintf() -> snprintf()
* 1997-02-09 Framstag new msg2tty interface (msgh,msg)
- * 1997-02-10 Framstag added setegid-call (security!)
+ * 1997-02-10 Framstag added setgid-call (security!)
* 1997-02-12 Framstag better IRIX and HP-UX support
* 1997-02-13 Framstag better OSF/1 support
* 1997-02-23 Framstag modified str_* function names
#if defined(HPUX) || defined(BSD)
- #define seteuid(a) setuid(a)
- #define setegid(a) setgid(a)
+ #define setuid(a) setuid(a)
+ #define setgid(a) setgid(a)
int restricted(const char *, const char *, char);
/* missed in <unistd.h> in some systems */
/* sendfile spool daemon for outgoing files */
int sfsd(int, int, int, int, float);
if (forwarding && *forward && *filename && !*rpipe) {
fprintf(dbf,"chdir: %d\n",chdir(userspool));
fprintf(dbf,"ruid: %d (%d)\n",ruid,geteuid());
fprintf(dbf,"rgid: %d (%d)\n",rgid,getegid());
- fprintf(dbf,"setegid: %d\n",setegid(rgid));
- fprintf(dbf,"seteuid: %d\n",seteuid(ruid));
+ fprintf(dbf,"setgid: %d\n",setgid(rgid));
+ fprintf(dbf,"setuid: %d\n",setuid(ruid));
/* convert back to UTF-7 and write to log file */
if (msglog && check_userspool(recipient,userconfighome)==0 &&