chiark / gitweb /
sysv-generator: fix wrong "Overwriting existing symlink" warnings
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 19 Feb 2015 10:06:24 +0000 (11:06 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 19 Feb 2015 10:06:24 +0000 (11:06 +0100)
commit4e5589836c9e143796c3f3d81e67ab7a9209e2b0
treeffbfa7d26b7eecc73ee0fdb2c222851049aca9c4
parent0377e373d1b4973effe14ca19e21f0c10740085d
sysv-generator: fix wrong "Overwriting existing symlink" warnings

Fix result testing of is_symlink() to ignore negative results, which happen if
the file name does not exist at all. In this case we do not want a warning and
unlink the non-existing link.

https://bugs.debian.org/778700
src/sysv-generator/sysv-generator.c
test/sysv-generator-test.py