From 44c63795a748419d29c4e912e426edf00e86a9e3 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Sat, 24 Mar 2018 23:44:09 -0500 Subject: [PATCH] userdel: fix wrong variable name in tcb case Found in mandriva distro patch, and with a test build. Signed-off-by: Serge Hallyn --- src/userdel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userdel.c b/src/userdel.c index 84486049..3cbbe119 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; -- 2.40.0