Merge pull request #408 from bjorn-fischer/ambient_caps
Add support for ambient capabilities
This commit is contained in:
commit
c628caf174
@ -1288,6 +1288,7 @@ int main (int argc, char **argv)
|
|||||||
env++;
|
env++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
(void) pam_end (pamh, PAM_SUCCESS | PAM_DATA_SILENT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void) setlocale (LC_ALL, "");
|
(void) setlocale (LC_ALL, "");
|
||||||
|
9
src/su.c
9
src/su.c
@ -1162,12 +1162,9 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
#ifdef USE_PAM
|
||||||
* PAM_DATA_SILENT is not supported by some modules, and
|
(void) pam_end (pamh, PAM_SUCCESS | PAM_DATA_SILENT);
|
||||||
* there is no strong need to clean up the process space's
|
#endif
|
||||||
* memory since we will either call exec or exit.
|
|
||||||
pam_end (pamh, PAM_SUCCESS | PAM_DATA_SILENT);
|
|
||||||
*/
|
|
||||||
|
|
||||||
endpwent ();
|
endpwent ();
|
||||||
endspent ();
|
endspent ();
|
||||||
|
Loading…
Reference in New Issue
Block a user