Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37810531
en ru br
Репозитории ALT
S:2007f-alt1
5.1: 2004g-alt2
4.1: 2004g-alt1.1
4.0: 2004g-alt1.1
3.0: 2001a-alt9.1.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: 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);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin