Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Simmphonie:yubico
pam-config
sanity_checks.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sanity_checks.patch of Package pam-config
--- pam-config-0.88/src/sanity_checks.c 2014-08-04 10:46:25.000000000 +0200 +++ pam-config-0.xx/src/sanity_checks.c 2015-06-08 14:28:36.924541717 +0200 @@ -32,7 +32,7 @@ { const char *path[] = { "/lib/security", "/lib64/security" }; unsigned int i; - int retval = 0; + int retval = 0, retbuf = 1; for (i = 0; i < (sizeof (path)/sizeof (char *)); i++) { @@ -42,21 +42,31 @@ sprintf (module, "%s/%s", path[i], name); - if (access (module, F_OK) != 0) + if (access (module, F_OK) != 0 && retbuf != 0) { - if (force) - fprintf (stderr, _("WARNING: module %s is not installed.\n"), - module); - else - { - fprintf (stderr, - _("ERROR: module %s is not installed.\n"), - module); - retval=1; - } + retval=1; + } + else + { + retbuf=0; + retval=0; } } } + + if (retval) + { + if (force) + { + fprintf (stderr, _("WARNING: module %s is not installed.\n"), + name); + } + else + { + fprintf (stderr, _("ERROR: module %s is not installed.\n"), + name); + } + } return retval; }
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