aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Montrose <montrose@itd.nrl.navy.mil>2002-07-15 19:05:12 +0000
committerBruce Montrose <montrose@itd.nrl.navy.mil>2002-07-15 19:05:12 +0000
commit4aeca322b4222b2735e057e8e9027cc94e2064dc (patch)
tree36b306707846fc8814974dba1aec15040267bb30
parent52311e1b7859b5406b4a7a015a9882ad57de70eb (diff)
downloadtor-4aeca322b4222b2735e057e8e9027cc94e2064dc.tar
tor-4aeca322b4222b2735e057e8e9027cc94e2064dc.tar.gz
bug-fix. poptReadDefaultOptions() should find and load ~/.<cmd>rc files now.
svn:r48
-rw-r--r--src/common/config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/config.c b/src/common/config.c
index 3d4162dab..c4e8029a2 100644
--- a/src/common/config.c
+++ b/src/common/config.c
@@ -8,6 +8,9 @@
/*
* Changes :
* $Log$
+ * Revision 1.5 2002/07/15 19:05:12 montrose
+ * bug-fix. poptReadDefaultOptions() should find and load ~/.<cmd>rc files now.
+ *
* Revision 1.4 2002/07/09 19:51:41 montrose
* Miscellaneous bug fixes / activated "make check" for src/or
*
@@ -403,9 +406,10 @@ RETURN VALUE: same as poptReadOptions()
c = poptReadOptions(optCon,fname);
if ( c == INT_MIN || c >= -1 )
{
- sprintf(fname,"~/.%src",cmd);
+ sprintf(fname,"%s/.%src",getenv("HOME"),cmd);
c = poptReadOptions(optCon,fname);
}
return (c == INT_MIN) ? -1 : c;
}
+