aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-09-04 14:20:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-09-04 14:20:29 +0000
commit1a2f7c37e7e368e749caafbb950c605cbd6dc822 (patch)
tree36abd90ebf1e9d29b6f46d013adfdff37b0ace0f /options.c
parent908b92d7ff4ad571963b71cf16518e7493571770 (diff)
downloadfetchmail-1a2f7c37e7e368e749caafbb950c605cbd6dc822.tar.gz
fetchmail-1a2f7c37e7e368e749caafbb950c605cbd6dc822.tar.bz2
fetchmail-1a2f7c37e7e368e749caafbb950c605cbd6dc822.zip
Sunil Shetye's re-exec patch.
svn path=/trunk/; revision=3696
Diffstat (limited to 'options.c')
-rw-r--r--options.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/options.c b/options.c
index f74100e8..000270ee 100644
--- a/options.c
+++ b/options.c
@@ -313,7 +313,7 @@ struct query *ctl; /* option record to be initialized */
break;
case 'L':
case LA_LOGFILE:
- rctl->logfile = optarg;
+ rctl->logfile = prependdir (optarg, currentwd);
break;
case LA_INVISIBLE:
rctl->invisible = TRUE;
@@ -323,11 +323,11 @@ struct query *ctl; /* option record to be initialized */
break;
case 'f':
case LA_RCFILE:
- rcfile = (char *) xstrdup(optarg);
+ rcfile = prependdir (optarg, currentwd);
break;
case 'i':
case LA_IDFILE:
- rctl->idfile = (char *) xstrdup(optarg);
+ rctl->idfile = prependdir (optarg, currentwd);
break;
case LA_POSTMASTER:
rctl->postmaster = (char *) xstrdup(optarg);
@@ -538,7 +538,7 @@ struct query *ctl; /* option record to be initialized */
ocount++;
break;
case LA_BSMTP:
- ctl->bsmtp = xstrdup(optarg);
+ ctl->bsmtp = prependdir (optarg, currentwd);
ocount++;
break;
case LA_LMTP:
@@ -578,11 +578,11 @@ struct query *ctl; /* option record to be initialized */
break;
case LA_SSLKEY:
- ctl->sslkey = xstrdup(optarg);
+ ctl->sslkey = prependdir (optarg, currentwd);
break;
case LA_SSLCERT:
- ctl->sslcert = xstrdup(optarg);
+ ctl->sslcert = prependdir (optarg, currentwd);
break;
case LA_SSLPROTO: