]> git.ipfire.org Git - thirdparty/systemd.git/commit
[PATCH] make symlink work properly if there is already a file in its place
authorazarah@nosferatu.za.org <azarah@nosferatu.za.org>
Tue, 30 Dec 2003 09:33:35 +0000 (01:33 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:12 +0000 (21:13 -0700)
commit3f09184b43dfd8b27fb05786a789f392de18bfca
treef8455b8c75f83cc31778a321688f59609a640899
parent13148857cb880c421711db60ad1785ed8e373906
[PATCH] make symlink work properly if there is already a file in its place

If a file that is not a symlink (node, socket, fifo, etc) already
exist where udev need to create a symlink, symlink() fails.  This
patch basically test for an existing file, and unlink it.
udev-add.c