Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
dialog
dialog-1.3-usretc.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dialog-1.3-usretc.diff of Package dialog
Index: dialog-1.3-20230209/rc.c =================================================================== --- dialog-1.3-20230209.orig/rc.c +++ dialog-1.3-20230209/rc.c @@ -576,8 +576,11 @@ dlg_parse_rc(void) if (rc_file == NULL) { /* step (b) failed? */ /* try step (c) */ strcpy(str, GLOBALRC); - if ((rc_file = fopen(filename = str, "rt")) == NULL) - return 0; /* step (c) failed, use default values */ + if ((rc_file = fopen(filename = str, "rt")) == NULL) { + sprintf(str, "/usr/%s", GLOBALRC); + if ((rc_file = fopen(filename = str, "rt")) == NULL) + return 0; /* step (c) failed, use default values */ + } } DLG_TRACE(("# opened rc file \"%s\"\n", filename));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor