shadow/src
Serge Hallyn 2b22a6909d libsubid: don't print error messages on stderr by default
Closes #325

Add a new subid_init() function which can be used to specify the
stream on which error messages should be printed.  (If you want to
get fancy you can redirect that to memory :)  If subid_init() is
not called, use stderr.  If NULL is passed, then /dev/null will
be used.

This patch also fixes up the 'Prog', which previously had to be
defined by any program linking against libsubid.  Now, by default
in libsubid it will show (subid).  Once subid_init() is called,
it will use the first variable passed to subid_init().

Signed-off-by: Serge Hallyn <serge@hallyn.com>
2021-05-15 12:38:55 -05:00
..
.gitignore Create a new libsubid 2020-06-07 12:11:58 -05:00
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
chage.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
check_subid_range.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chfn.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chgpasswd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chpasswd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chsh.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
expiry.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
faillog.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
free_subid_range.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
get_subid_owners.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
gpasswd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupadd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupdel.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupmems.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupmod.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groups.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
grpck.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
grpconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
grpunconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
id.c * src/newgrp.c: Limit the scope of variable pid. 2010-03-23 11:26:34 +00:00
lastlog.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
list_subid_ranges.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
login_nopam.c * src/newgrp.c: Limit the scope of variable pid. 2010-03-23 11:26:34 +00:00
login.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
logoutd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
Makefile.am subids: support nsswitch 2021-04-16 21:02:37 -05:00
new_subid_range.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newgidmap.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newgrp.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newuidmap.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newusers.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
nologin.c Adding logging of SSH_ORIGINAL_COMMAND to nologin. 2020-01-11 14:46:52 -06:00
passwd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
pwck.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
pwconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
pwunconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
su.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
suauth.c spelling: unrecognized 2017-10-22 21:30:30 +00:00
sulogin.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
useradd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
userdel.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
usermod.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
vipw.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00