Merge pull request #408 from bjorn-fischer/ambient_caps

Add support for ambient capabilities
This commit is contained in:
Serge Hallyn 2021-12-05 08:05:06 -06:00 committed by GitHub
commit c628caf174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -1288,6 +1288,7 @@ int main (int argc, char **argv)
env++;
}
}
(void) pam_end (pamh, PAM_SUCCESS | PAM_DATA_SILENT);
#endif
(void) setlocale (LC_ALL, "");

View File

@ -1162,12 +1162,9 @@ int main (int argc, char **argv)
}
}
/*
* PAM_DATA_SILENT is not supported by some modules, and
* there is no strong need to clean up the process space's
* memory since we will either call exec or exit.
pam_end (pamh, PAM_SUCCESS | PAM_DATA_SILENT);
*/
#ifdef USE_PAM
(void) pam_end (pamh, PAM_SUCCESS | PAM_DATA_SILENT);
#endif
endpwent ();
endspent ();