[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[or-cvs] bug-fix. poptReadDefaultOptions() should find and load ~/.<...



Update of /home/or/cvsroot/src/common
In directory moria.seul.org:/tmp/cvs-serv18251/src/common

Modified Files:
	config.c 
Log Message:
bug-fix. poptReadDefaultOptions() should find and load ~/.<cmd>rc files now.


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/common/config.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- config.c	9 Jul 2002 19:51:41 -0000	1.4
+++ config.c	15 Jul 2002 19:05:12 -0000	1.5
@@ -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 @@
    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;
 }
+