shadow/src
Christian Göttsche a8166a86ed Declare read-only arguments of run_part(s) const
run_part() and run_parts() do not modify their directory, name and
action arguments.
Also include the header in the implementation to provide the prototypes.

useradd.c:2495:59: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
 2495 |         if (run_parts ("/etc/shadow-maint/useradd-pre.d", (char*)user_name,
      |                                                           ^
useradd.c:2495:24: warning: passing argument 1 of ‘run_parts’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2495 |         if (run_parts ("/etc/shadow-maint/useradd-pre.d", (char*)user_name,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from useradd.c:45:
../lib/run_part.h:2:22: note: expected ‘char *’ but argument is of type ‘const char *’
    2 | int run_parts (char *directory, char *name, char *action);
      |                ~~~~~~^~~~~~~~~
useradd.c:2496:25: warning: passing argument 3 of ‘run_parts’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2496 |                         "useradd")) {
      |                         ^~~~~~~~~
2022-01-03 15:09:17 +01:00
..
.gitignore getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
.indent.pro
chage.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
check_subid_range.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
chfn.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
chgpasswd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
chpasswd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
chsh.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
expiry.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
faillog.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
free_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
get_subid_owners.c Declare file local functions static 2022-01-03 15:09:17 +01:00
getsubids.c Declare file local functions static 2022-01-03 15:09:17 +01:00
gpasswd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupadd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupdel.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupmems.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupmod.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groups.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpck.c Declare read-only lookup pointers const 2022-01-03 15:09:17 +01:00
grpconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
id.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
lastlog.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
login_nopam.c Update licensing info 2021-12-23 19:36:50 -06:00
login.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
logoutd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
Makefile.am getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
new_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newgidmap.c Declare variable for string literal const 2022-01-03 15:09:17 +01:00
newgrp.c Do not drop const qualifier for Basename 2022-01-03 15:09:17 +01:00
newuidmap.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newusers.c Avoid unused variable warnings when building with PAM 2022-01-03 15:09:17 +01:00
nologin.c Update licensing info 2021-12-23 19:36:50 -06:00
passwd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
pwck.c Declare read-only lookup pointers const 2022-01-03 15:09:17 +01:00
pwconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
pwunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
su.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
suauth.c Update licensing info 2021-12-23 19:36:50 -06:00
sulogin.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
useradd.c Declare read-only arguments of run_part(s) const 2022-01-03 15:09:17 +01:00
userdel.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
usermod.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
vipw.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00