Avoids passwd corruption on #mod_user.
This commit is contained in:
parent
3038e7d076
commit
505171ff7b
1 changed files with 2 additions and 2 deletions
|
@ -189,11 +189,11 @@ class Passwd
|
||||||
|
|
||||||
user.to_csv
|
user.to_csv
|
||||||
else
|
else
|
||||||
line.join(':') + "\n"
|
line.join(':')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
File.write @passwd, new_passwd.join + "\n"
|
File.write @passwd, new_passwd.join("\n") + "\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue