path-util: also support ".old" and ".new" suffixes and recommend them
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Apr 2016 14:17:43 +0000 (10:17 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Apr 2016 14:21:07 +0000 (10:21 -0400)
commit94a0ef6e572896140b8f28f688e881e198e2f2ab
tree3f45c4d3d91eebec00fbe397167c2d70d85424da
parent2397bc4312f6d1fbdf97bf826a1ca6ad409aabf3
path-util: also support ".old" and ".new" suffixes and recommend them

~ suffix works fine, but looks to much like it the file is supposed to be
automatically cleaned up. For new versions of configuration files installers
might want to using something that looks more permanent like foobar.new.
So let's add treat ".old" and ".new" as special.

Update test to match.
src/basic/path-util.c
test/sysv-generator-test.py