From: Serge Hallyn Date: Sun, 25 Mar 2018 04:44:09 +0000 (-0500) Subject: userdel: fix wrong variable name in tcb case X-Git-Tag: 4.6~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44c63795a748419d29c4e912e426edf00e86a9e3;p=thirdparty%2Fshadow.git userdel: fix wrong variable name in tcb case Found in mandriva distro patch, and with a test build. Signed-off-by: Serge Hallyn --- diff --git a/src/userdel.c b/src/userdel.c index 84486049f..3cbbe1191 100644 --- a/src/userdel.c +++ b/src/userdel.c @@ -926,7 +926,7 @@ static int remove_tcbdir (const char *user_name, uid_t user_id) { char *buf; int ret = 0; - size_t bufsize = (sizeof TCB_DIR) + strlen (user_name) + 2; + size_t buflen = (sizeof TCB_DIR) + strlen (user_name) + 2; if (!getdef_bool ("USE_TCB")) { return 0;