Menu

#3 SIGSEGV at first start of xrm-libeditor

open
nobody
None
5
2000-08-14
2000-08-14
Ernst Gill
No

I got SIGSEGV at first start of xrm-libeditor if xroadmaker was already running.

The subprogram FirstExecution() in file optionfile.c tries to create a
directory called '.xroadmaker/rm-libeditor.conf' instead of '.xroadmaker'
in the user home directory.

Here is a working patch:

---------------------------------------------------
--- src/optionfile.c.org Mon Aug 14 23:31:37 2000
+++ src/optionfile.c Mon Aug 14 23:50:38 2000
@@ -132,7 +132,7 @@

HomeDir = getenv("HOME");
if (HomeDir != NULL)
- sprintf(Buffer,"%s/%s/%s",HomeDir, ConfigDir, ConfigFileName);
+ sprintf(Buffer,"%s/%s/%s",HomeDir, ConfigDir);
else
printf("The HOME variable is not set!!!\nErrors may occur...!\n");

---------------------------------------------------

Ernst

Discussion


Log in to post a comment.