From 8a39f88233a8bd13aab53f164fdae6fc00da1484 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 16 Feb 2024 14:56:38 +0600 Subject: [PATCH] Fixed hash checking --- source/ubl-settings-usergroups.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ubl-settings-usergroups.h b/source/ubl-settings-usergroups.h index 1102986..1925ece 100644 --- a/source/ubl-settings-usergroups.h +++ b/source/ubl-settings-usergroups.h @@ -44,7 +44,7 @@ #define samba_sync_command(user) yon_char_unite("sudo smbpasswd -Las ",user,NULL) #define samba_sync_password_command(user, password) yon_char_unite("(echo \"",password,"\"; echo \"",password,"\") | sudo smbpasswd -Las ",user,NULL) #define get_passwords_command "ubconfig --target global get [users] USERADD[*] GROUPADD[*]" -#define check_is_password_hash(password) system(yon_char_append("/lib/ublinux/functions is_hash_password ", password)) +#define check_is_password_hash(password) system(yon_char_unite("/lib/ublinux/functions is_hash_password '", password,"'",NULL)) #define groups_path "/etc/group" #define users_path "/etc/passwd"