1 |
On 2020-08-29 21:53, Michał Górny wrote: |
2 |
|
3 |
> + newins - ${CATEGORY}-${ACCT_USER_NAME}.conf < <( |
4 |
> + printf "u\t%q\t%q\t%q\t%q\t%q\n" \ |
5 |
> + "${ACCT_USER_NAME}" \ |
6 |
> + "${ACCT_USER_ID/#-*/-}:${ACCT_USER_GROUPS[0]}" \ |
7 |
> + "${DESCRIPTION//[:,=]/;}" \ |
8 |
|
9 |
Maybe it's a fault in how I have tested this (i.e. in an interactive |
10 |
bash session, by setting all the variables and copy-pasting the relevant |
11 |
printf lines by hand) but for me this results in an unquoted GECOS |
12 |
string with spaces escaped with backslashes, whereas sysusers.d(5) |
13 |
explicitly states this should be enclosed in quotation marks. Could you |
14 |
double-check, please? |
15 |
|
16 |
Otherwise LGTM. |
17 |
|
18 |
-- |
19 |
MS |