Re: [PATCH 01/13] test: fix passwd_sanitize()

2021-05-01 Thread Tomi Ollila
On Sat, May 01 2021, Felipe Contreras wrote: > If any of the variables is empty the output is completely messed up, > because replace("", "FOO") puts "FOO" before every single character. > > I don't have my full name configured, and this is what I get: > > USER_FULL_NAME=USER_FULL_NAME=USER_FULL

[PATCH 01/13] test: fix passwd_sanitize()

2021-05-01 Thread Felipe Contreras
If any of the variables is empty the output is completely messed up, because replace("", "FOO") puts "FOO" before every single character. I don't have my full name configured, and this is what I get: USER_FULL_NAME=USER_FULL_NAME=USER_FULL_NAME USER_FULL_NAMEsUSER_FULL_NAMEtUSER_FULL_NAMEdUSER