Merge pull request #1899 from austinhyde/fix-service-rcconf-newlines

Service module incorrectly handles lines not ending in a newline
reviewable/pr18780/r1
Brian Coca 9 years ago
commit cd0a1947c2

@ -359,7 +359,7 @@ class Service(object):
self.changed = True
# Add line to the list.
new_rc_conf.append(rcline)
new_rc_conf.append(rcline.strip() + '\n')
# We are done with reading the current rc.conf, close it.
RCFILE.close()

Loading…
Cancel
Save