Skip to content

Commit

Permalink
Add missing newline in sysusers Requires
Browse files Browse the repository at this point in the history
Without the newline, a sysusers file like

```
u saned - "SANE daemon user" /etc/sane.d /bin/false
m saned cdwriter
m saned usb
m saned scanner
```

Results in "funny" requirements
```
group(cdwriter)user(saned)
group(usb)user(saned)
```
  • Loading branch information
berolinux authored and ffesti committed Jul 9, 2024
1 parent d94dbcc commit ea06853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileattrs/sysusers.attr
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
table.insert(fields, w)
end
if #fields >= 3 and fields[1] == 'm' then
print(string.format('user(%s)\\ngroup(%s)', fields[2], fields[3]))
print(string.format('user(%s)\\ngroup(%s)\\n', fields[2], fields[3]))
end
::continue::
end
Expand Down

0 comments on commit ea06853

Please sign in to comment.