Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
minicom
minicom-2.4-norootsetup.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File minicom-2.4-norootsetup.diff of Package minicom
save to ~/.minirc if not root Index: minicom-2.5/src/config.c =================================================================== --- minicom-2.5.orig/src/config.c +++ minicom-2.5/src/config.c @@ -1234,7 +1234,7 @@ void vdodflsave(void) int dodflsave(void) { FILE *fp; - char *fname = dosetup ? parfile : pparfile; + char *fname = getuid() == 0 ? parfile : pparfile; if ((fp = fopen(fname, "w")) == NULL) { werror(_("Cannot write to %s"), fname); @@ -1289,6 +1289,7 @@ static void donamsave(void) s = input(_("Give name to save this configuration?"), ifile); if (s != (char *)0 && *s != 0) { snprintf(parfile, sizeof(parfile), "%s/minirc.%s", CONFDIR, s); + snprintf(pparfile, sizeof(pparfile), "%s/.minirc.%s", homedir, s); dodflsave(); } }
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