mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
bug-fix. poptReadDefaultOptions() should find and load ~/.<cmd>rc files now.
svn:r48
This commit is contained in:
parent
52311e1b78
commit
4aeca322b4
@ -8,6 +8,9 @@
|
|||||||
/*
|
/*
|
||||||
* Changes :
|
* Changes :
|
||||||
* $Log$
|
* $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
|
* Revision 1.4 2002/07/09 19:51:41 montrose
|
||||||
* Miscellaneous bug fixes / activated "make check" for src/or
|
* Miscellaneous bug fixes / activated "make check" for src/or
|
||||||
*
|
*
|
||||||
@ -403,9 +406,10 @@ RETURN VALUE: same as poptReadOptions()
|
|||||||
c = poptReadOptions(optCon,fname);
|
c = poptReadOptions(optCon,fname);
|
||||||
if ( c == INT_MIN || c >= -1 )
|
if ( c == INT_MIN || c >= -1 )
|
||||||
{
|
{
|
||||||
sprintf(fname,"~/.%src",cmd);
|
sprintf(fname,"%s/.%src",getenv("HOME"),cmd);
|
||||||
c = poptReadOptions(optCon,fname);
|
c = poptReadOptions(optCon,fname);
|
||||||
}
|
}
|
||||||
return (c == INT_MIN) ? -1 : c;
|
return (c == INT_MIN) ? -1 : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user