From 1d10aaf11617558592b0215fe85bc42fa444e384 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 27 Jul 2007 11:22:34 +0000 Subject: passwd: fix bug: we are trying to update shadow even if user's record is in passwd! getspnam is guilty, it lies that user record exists in shadow. --- include/libbb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 82cee380b..b438ec25f 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -482,10 +482,10 @@ int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok); /* chown-like handling of "user[:[group]" */ void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group); /* bb_getpwuid, bb_getgrgid: -bb_getXXXid(buf, bufsz, id) - copy user/group name or id - as a string to buf, return user/group name or NULL -bb_getXXXid(NULL, 0, id) - return user/group name or NULL -bb_getXXXid(NULL, -1, id) - return user/group name or exit + * bb_getXXXid(buf, bufsz, id) - copy user/group name or id + * as a string to buf, return user/group name or NULL + * bb_getXXXid(NULL, 0, id) - return user/group name or NULL + * bb_getXXXid(NULL, -1, id) - return user/group name or exit */ char *bb_getpwuid(char *name, int bufsize, long uid); char *bb_getgrgid(char *group, int bufsize, long gid); -- cgit v1.2.3