Репозитории ALT
S: | 2007f-alt1 |
5.1: | 2004g-alt2 |
4.1: | 2004g-alt1.1 |
4.0: | 2004g-alt1.1 |
3.0: | 2001a-alt9.1.1 |
Группа :: Система/Серверы
Пакет: uw-imap
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: uw-imap-2001a-debian-nonull.patch
Скачать
Скачать
diff -ruN imap-2001a.orig/src/osdep/unix/env_unix.c imap-2001a/src/osdep/unix/env_unix.c
--- imap-2001a.orig/src/osdep/unix/env_unix.c Wed Oct 17 23:27:59 2001
+++ imap-2001a/src/osdep/unix/env_unix.c Sun Jan 13 14:49:33 2002
@@ -631,6 +631,8 @@
struct passwd *pw;
struct stat sbuf;
char tmp[MAILTMPLEN];
+
+ memset (tmp, 0, MAILTMPLEN); /* zero out tmp */
if (myUserName) fatal ("env_init called twice!");
/* myUserName must be set before dorc() call */
myUserName = cpystr (user ? user : ANONYMOUSUSER);
@@ -676,6 +678,8 @@
myHomeDir = cpystr (home); /* set home directory */
}
+ if(!myHomeDir) myHomeDir = cpystr(""); /* if myHomeDir is still a null pointer */
+
if (allowuserconfig) { /* allow user config files */
dorc (strcat (strcpy (tmp,myHomeDir),"/.mminit"),T);
dorc (strcat (strcpy (tmp,myHomeDir),"/.imaprc"),NIL);