From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Thu, 25 Dec 2003 13:29:13 +0000 Subject: udev and existing symlinks Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Without this patch udev will fail when a symlink already exists. diff -ruN udev-011.orig/udev-add.c udev-011/udev-add.c --- udev-011.orig/udev-add.c 2003-12-20 02:06:48.000000000 +0100 +++ udev-011/udev-add.c 2003-12-25 13:30:11.000000000 +0100 @@ -223,6 +223,8 @@ dbg("symlink(%s, %s)", linktarget, filename); retval = symlink(linktarget, filename); + if (retval && errno = EEXIST) + retval = 0; if (retval) dbg("symlink(%s, %s) failed with error '%s'", linktarget, filename, strerror(errno)); -- ciao, | Marco | [3783 l'aPjd9wP9m5M] ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel