diff options
author | Balint Reczey <balint@balintreczey.hu> | 2021-11-07 15:18:49 +0100 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2021-11-07 15:18:49 +0100 |
commit | 749c1780621163ca5108f164861324bafa9e0ae8 (patch) | |
tree | 51001872624a692018c45bf39276df94b603fb19 /libmisc/find_new_sub_uids.c | |
parent | d906ecd3b652d95af6ffb974a2f6669501bb9496 (diff) | |
download | shadow-749c1780621163ca5108f164861324bafa9e0ae8.tar.gz |
New upstream version 4.9upstream/4.9
Diffstat (limited to 'libmisc/find_new_sub_uids.c')
-rw-r--r-- | libmisc/find_new_sub_uids.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmisc/find_new_sub_uids.c b/libmisc/find_new_sub_uids.c index 12cb2d2e..be3a0df8 100644 --- a/libmisc/find_new_sub_uids.c +++ b/libmisc/find_new_sub_uids.c @@ -46,8 +46,7 @@ * * Return 0 on success, -1 if no unused UIDs are available. */ -int find_new_sub_uids (const char *owner, - uid_t *range_start, unsigned long *range_count) +int find_new_sub_uids (uid_t *range_start, unsigned long *range_count) { unsigned long min, max; unsigned long count; @@ -61,7 +60,7 @@ int find_new_sub_uids (const char *owner, count = getdef_ulong ("SUB_UID_COUNT", 65536); if (min > max || count >= max || (min + count - 1) > max) { - (void) fprintf (stderr, + (void) fprintf (shadow_logfd, _("%s: Invalid configuration: SUB_UID_MIN (%lu)," " SUB_UID_MAX (%lu), SUB_UID_COUNT (%lu)\n"), Prog, min, max, count); @@ -70,7 +69,7 @@ int find_new_sub_uids (const char *owner, start = sub_uid_find_free_range(min, max, count); if (start == (uid_t)-1) { - fprintf (stderr, + fprintf (shadow_logfd, _("%s: Can't get unique subordinate UID range\n"), Prog); SYSLOG ((LOG_WARN, "no more available subordinate UIDs on the system")); |