From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 30 Dec 2003 01:24:44 +0000 Subject: Re: udev and existing symlinks Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Dec 25, 2003 at 02:29:13PM +0100, Marco d'Itri wrote: > 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)); The patch from Martin Schlemmer should keep this from happening, right? thanks, greg k-h ------------------------------------------------------- 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