aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1998-03-07 03:44:12 +0800
committerse <se@FreeBSD.org>1998-03-07 03:44:12 +0800
commit6bef443275f4b3e52613b95585eb298b479516c5 (patch)
tree27511ed17b59fd5b5a411235324e2c1785724fdd /net
parente23b5770ba3a97538faa4cc1b48fd073e0718caf (diff)
downloadfreebsd-ports-gnome-6bef443275f4b3e52613b95585eb298b479516c5.tar.gz
freebsd-ports-gnome-6bef443275f4b3e52613b95585eb298b479516c5.tar.zst
freebsd-ports-gnome-6bef443275f4b3e52613b95585eb298b479516c5.zip
Use _PATH_MAILDIR instead of hardcoded /var/mail
Diffstat (limited to 'net')
-rw-r--r--net/kdenetwork11/files/patch-ab31
1 files changed, 24 insertions, 7 deletions
diff --git a/net/kdenetwork11/files/patch-ab b/net/kdenetwork11/files/patch-ab
index b9cdbb5ef521..0cd29fd9b2e2 100644
--- a/net/kdenetwork11/files/patch-ab
+++ b/net/kdenetwork11/files/patch-ab
@@ -1,18 +1,34 @@
-*** kmail/kmacctlocal.cpp~ Sat Feb 28 15:56:44 1998
---- kmail/kmacctlocal.cpp Sat Feb 28 15:57:14 1998
+*** kmail/kmacctlocal.cpp~ Fri Mar 6 19:51:06 1998
+--- kmail/kmacctlocal.cpp Fri Mar 6 19:50:43 1998
***************
-*** 42,46 ****
+*** 13,16 ****
+--- 13,22 ----
+ #include <stdio.h>
+ #include <errno.h>
++ #ifdef __FreeBSD__
++ #include <paths.h> /* defines _PATH_MAILDIR */
++ #endif
++ #ifndef _PATH_MAILDIR
++ #define _PATH_MAILDIR "/var/spool/mail"
++ #endif
+
+
+***************
+*** 42,47 ****
void KMAcctLocal::init(void)
{
! mLocation = "/var/spool/mail/";
mLocation.detach();
mLocation += getenv("USER");
---- 42,46 ----
+ }
+--- 48,54 ----
void KMAcctLocal::init(void)
{
-! mLocation = "/var/mail/";
+! mLocation = _PATH_MAILDIR;
mLocation.detach();
++ mLocation += "/";
mLocation += getenv("USER");
+ }
***************
*** 99,103 ****
void KMAcctLocal::readConfig(KConfig& config)
@@ -20,9 +36,10 @@
! QString defaultPath("/var/spool/mail/");
defaultPath += getenv("USER");
---- 99,103 ----
+--- 106,111 ----
void KMAcctLocal::readConfig(KConfig& config)
{
-! QString defaultPath("/var/mail/");
+! QString defaultPath(_PATH_MAILDIR);
+! defaultPath += "/";
defaultPath += getenv("USER");