[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Silly bug in libc/setreuid.c



For the AIX hack of setreuid, it does not return 0 in the event
of a success.  Results can be a bit unpredictable.

Here is the patch.

Index: ports/mail/zmailer/libc/setreuid.c
diff -c ports/mail/zmailer/libc/setreuid.c:1.1.1.1 ports/mail/zmailer/libc/setreuid.c:1.1.1.1.2.1
*** ports/mail/zmailer/libc/setreuid.c:1.1.1.1	Thu Oct 31 09:37:49 1996
--- ports/mail/zmailer/libc/setreuid.c	Fri Dec 19 08:48:31 1997
***************
*** 73,78 ****
--- 73,79 ----
  	lreply(230, "rgid=%d, egid=%d, sgid=%d, lgid=%d", getgidx(ID_REAL),
  	       getgidx(ID_EFFECTIVE), getgidx(ID_SAVED), getgidx(ID_LOGIN));
  #endif
+ 	return 0;
  }
  
  #else