uids/gids not properly typed in sendmail v5.61

Rob Robertson rob at violet.berkeley.edu
Thu Feb 16 13:10:52 AEST 1989


Subject: uids/gids not properly typed in sendmail v5.61
Index:	usr.lib/sendmail/src/sendmail.h  4.3BSD

Description:
	uid/gid improperly defined as short, should be unsigned short.
Repeat-By:
	watch it break with uid's greater than >32767.  .fowards are 
	no longer obeyed.  Other stuff probably also breaks.
Fix:
(line number may vary...)

------- sendmail.h -------
*** /tmp/d26411	Wed Feb 15 18:34:50 1989
--- sendmail.h	Wed Feb 15 17:24:08 1989
***************
*** 91,98 ****
  	char		*q_host;	/* host name */
  	struct mailer	*q_mailer;	/* mailer to use */
  	u_short		q_flags;	/* status flags, see below */
! 	short		q_uid;		/* user-id of receiver (if known) */
! 	short		q_gid;		/* group-id of receiver (if known) */
  	char		*q_home;	/* home dir (local mailer only) */
  	char		*q_fullname;	/* full name if known */
  	struct address	*q_next;	/* chain */
--- 92,99 ----
  	char		*q_host;	/* host name */
  	struct mailer	*q_mailer;	/* mailer to use */
  	u_short		q_flags;	/* status flags, see below */
! 	uid_t 		q_uid;		/* user-id of receiver (if known) */
! 	gid_t		q_gid;		/* group-id of receiver (if known) */
  	char		*q_home;	/* home dir (local mailer only) */
  	char		*q_fullname;	/* full name if known */
  	struct address	*q_next;	/* chain */


				william robertson
				rob at violet.berkeley.edu



More information about the Comp.bugs.4bsd.ucb-fixes mailing list