Skip to contentSkip to conversation

Bug in spec-file: init script is overwritten

Openvpn-devel Bernd Bartmann 2 participants 3 messages Apr 7, 2006 – Apr 9, 2006

lore
Share & tools
lore
#0 lore raw

The openvpn .spec-file supplied in the source code archive does not specify "%config(noreplace)" for the init file, i.e. if you run "rpm -Uvh openvpn.rpm" and you have a modified init script it is simply overwritten without notice. I would expect that the rpm update operation either creates a openvpn.rpmsave or openvpn.rpmnew file.

Best regards,
Bernd.

#1 lore raw
Quoted 5 lines · Bernd Bartmann

The openvpn .spec-file supplied in the source code archive does not specify "%config(noreplace)" for the init file, i.e. if you run "rpm -Uvh openvpn.rpm" and you have a modified init script it is simply overwritten without notice. I would expect that the rpm update operation either creates a openvpn.rpmsave or openvpn.rpmnew file.

A quick grep through the Fedora Core and Extras spec files shows that most don't even mark their init scripts as %config, much less %config(noreplace).

Steve

Signature · 3 lines
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [email protected]...             http://www.kspei.com/
Phone: (618)398-3000               Mobile: (618)567-7320
#2 lore raw
Quoted 10 lines · Steven Pritchard
Quoted 3 lines · Bernd Bartmann

The openvpn .spec-file supplied in the source code archive does not specify "%config(noreplace)" for the init file, i.e. if you run "rpm -Uvh openvpn.rpm" and you have a modified init script it is simply
overwritten without notice. I would expect that the rpm update operation either creates a openvpn.rpmsave or openvpn.rpmnew file.

A quick grep through the Fedora Core and Extras spec files shows that most don't even mark their init scripts as %config, much less %config(noreplace).

I just took a look at the spec-files for daemons that are in the FC5 core-updates released so far. ALL of them have %config set for the init script:

%config is set for named, smb, sendmail, spamassassin %config(noreplace) is set for squid

Anyway it does not hurt to protect the init script against being overwritten.

Best regards,
Bernd.