summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
46977ce)
SCCS-vsn: usr.sbin/sendmail/src/envelope.c 8.33
-static char sccsid[] = "@(#)envelope.c 8.32 (Berkeley) %G%";
+static char sccsid[] = "@(#)envelope.c 8.33 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
if (e->e_from.q_home == NULL)
{
e->e_from.q_home = getenv("HOME");
if (e->e_from.q_home == NULL)
{
e->e_from.q_home = getenv("HOME");
- if (e->e_from.q_home == NULL)
- e->e_from.q_home = "";
- if (strcmp(e->e_from.q_home, "/") == 0)
+ if (e->e_from.q_home != NULL &&
+ strcmp(e->e_from.q_home, "/") == 0)
e->e_from.q_home++;
}
e->e_from.q_uid = RealUid;
e->e_from.q_home++;
}
e->e_from.q_uid = RealUid;