Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37538589
en ru br
ALT Linux repos
5.0: 4.64L-alt5.1
4.1: 4.64L-alt5
4.0: 4.64L-alt4.1
3.0: 4.58L-alt4
+backports:4.64L-alt0.M30.4

Group :: Networking/Mail
RPM: pine

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: uw-imap-2001a-debian-nonull.patch
Download


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);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin