freebsd-ports/mail/qpopper/files/patch-popper_genpath.c
Johan van Selst dce18e1bf4 - Update to 4.0.9
- Assign submitter of PR as maintainer
- Remove IPv6 patch

PR:		97641
Submitted by:	Doug Hardie
Approved by:	flz (mentor)
2006-06-25 19:58:41 +00:00

26 lines
920 B
C

--- popper/genpath.c.orig Thu Mar 9 14:32:37 2006
+++ popper/genpath.c Sat May 13 17:40:25 2006
@@ -133,7 +133,10 @@
break;
case GNPH_POP: /* .pop file */
- len1 = strlcpy ( pszDrop, p->pCfg_temp_dir, iDropLen );
+ if (p->bHome_dir_misc == TRUE)
+ len1 = strlcpy (pszDrop, pw->pw_dir, iDropLen );
+ else
+ len1 = strlcpy (pszDrop, p->pCfg_temp_dir, iDropLen );
len2 = strlcat ( pszDrop, "/", iDropLen );
break;
@@ -143,7 +146,10 @@
break;
case GNPH_CACHE: /* .cache file */
- len1 = strlcpy ( pszDrop, p->pCfg_cache_dir, iDropLen );
+ if (p->bHome_dir_misc == TRUE)
+ len1 = strlcpy (pszDrop, pw->pw_dir, iDropLen );
+ else
+ len1 = strlcpy (pszDrop, p->pCfg_cache_dir, iDropLen );
len2 = strlcat ( pszDrop, "/", iDropLen );
break;