]> granicus.if.org Git - shadow/commitdiff
userdel: fix wrong variable name in tcb case
authorSerge Hallyn <shallyn@cisco.com>
Sun, 25 Mar 2018 04:44:09 +0000 (23:44 -0500)
committerSerge Hallyn <shallyn@cisco.com>
Sun, 25 Mar 2018 04:44:09 +0000 (23:44 -0500)
Found in mandriva distro patch, and with a test build.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
src/userdel.c

index 84486049f34b2b7428fa12dd9494bc2c274ce0a2..3cbbe1191fd5bb1ac9367829e214cb0501afc87b 100644 (file)
@@ -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;