Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_password() pos argument #365

Open
frikiluser opened this issue Aug 18, 2022 · 1 comment
Open

update_password() pos argument #365

frikiluser opened this issue Aug 18, 2022 · 1 comment

Comments

@frikiluser
Copy link

Hi,

Some pending tools call update_password() using only 3 arguments while 4 are expected.

lib/password.c:int update_password(char *filename, char *username, char *entry, int pos)

GCC error:

toys/pending/chsh.c:74:13: error: too few arguments to function 'update_password'

I've patched 5 toys adding a trailing argument 0. It seems to work fine now.

toys/pending/chsh.c
toys/pending/groupadd.c
toys/pending/groupdel.c
toys/pending/useradd.c
toys/pending/userdel.c

Patch: https://salsa.debian.org/debian/toybox/-/raw/d4513b243b800e0be9ecaec835656f0366a8cb2a/debian/patches/update_password.patch

@landley
Copy link
Owner

landley commented Aug 19, 2022

My bad, I have a largeish rewrite of lib/password.c in my tree that I need to test under mkroot, ala https://landley.net/notes-2022.html#08-01-2022

Looks like some of the changes leaked into a commit. Oops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants