1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-11 23:25:17 +00:00
freebsd-ports/net/kdenetwork11/files/patch-ab

46 lines
1016 B
Plaintext
Raw Normal View History

*** kmail/kmacctlocal.cpp~ Fri Mar 6 19:51:06 1998
--- kmail/kmacctlocal.cpp Fri Mar 6 19:50:43 1998
1998-03-04 23:18:04 +00:00
***************
*** 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 ****
1998-03-04 23:18:04 +00:00
void KMAcctLocal::init(void)
{
! mLocation = "/var/spool/mail/";
mLocation.detach();
mLocation += getenv("USER");
}
--- 48,54 ----
1998-03-04 23:18:04 +00:00
void KMAcctLocal::init(void)
{
! mLocation = _PATH_MAILDIR;
1998-03-04 23:18:04 +00:00
mLocation.detach();
+ mLocation += "/";
1998-03-04 23:18:04 +00:00
mLocation += getenv("USER");
}
1998-03-04 23:18:04 +00:00
***************
*** 99,103 ****
void KMAcctLocal::readConfig(KConfig& config)
{
! QString defaultPath("/var/spool/mail/");
defaultPath += getenv("USER");
--- 106,111 ----
1998-03-04 23:18:04 +00:00
void KMAcctLocal::readConfig(KConfig& config)
{
! QString defaultPath(_PATH_MAILDIR);
! defaultPath += "/";
1998-03-04 23:18:04 +00:00
defaultPath += getenv("USER");