Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lnussel:droplockdev
minicom
openSUSE-no-root-setup.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openSUSE-no-root-setup.patch of Package minicom
diff -Nur minicom-2.8/src/config.c new/src/config.c --- minicom-2.8/src/config.c 2021-01-01 18:45:55.000000000 +0100 +++ new/src/config.c 2022-05-23 15:22:59.218799729 +0200 @@ -1372,7 +1372,7 @@ 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); @@ -1427,7 +1427,7 @@ s = input(_("Give name to save this configuration?"), ifile, sizeof(ifile)); if (s != (char *)0 && *s != 0) { if (dosetup) { - snprintf(parfile, sizeof(parfile), "%s/minirc.%s", CONFDIR, s); + snprintf(pparfile, sizeof(pparfile), "%s/.minirc.%s", homedir, s); } else { snprintf(pparfile, sizeof(pparfile), "%s/.minirc.%s", homedir, s); }
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