From owner-freebsd-hubs@FreeBSD.ORG Fri Aug 6 23:47:14 2004 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70B0316A4CE for ; Fri, 6 Aug 2004 23:47:14 +0000 (GMT) Received: from electra.cse.Buffalo.EDU (electra.cse.Buffalo.EDU [128.205.32.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8118343D2D for ; Fri, 6 Aug 2004 23:47:09 +0000 (GMT) (envelope-from kensmith@cse.Buffalo.EDU) Received: from electra.cse.Buffalo.EDU (kensmith@localhost [127.0.0.1]) i76Nl8TH019650; Fri, 6 Aug 2004 19:47:08 -0400 (EDT) Received: (from kensmith@localhost) by electra.cse.Buffalo.EDU (8.12.10/8.12.9/Submit) id i76Nl8wa019649; Fri, 6 Aug 2004 19:47:08 -0400 (EDT) Date: Fri, 6 Aug 2004 19:47:08 -0400 From: Ken Smith To: Eberhard Moenkeberg Message-ID: <20040806234708.GA19076@electra.cse.Buffalo.EDU> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: hubs@freebsd.org Subject: Re: symlink xxx -> . X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Distributions Hubs: mail sup ftp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 23:47:14 -0000 On Sat, Aug 07, 2004 at 12:39:38AM +0200, Eberhard Moenkeberg wrote: > what the hell is this: > > emoenke@ftp:6 23:50:04 /mirr/bin > cd > /pub/FreeBSD/releases/i386/5.2.1-RELEASE > emoenke@ftp:6 00:14:33 /ftp/pub/FreeBSD/releases/i386/5.2.1-RELEASE > dir > insgesamt 536 > drwxr-xr-x 20 emoenke ftp 4096 2004-02-25 09:04 . > drwxr-xr-x 8 emoenke ftp 4096 2004-06-19 04:50 .. > lrwxrwxrwx 1 emoenke ftp 1 2004-07-24 16:31 5.2.1-RELEASE -> . > drwxr-xr-x 2 emoenke ftp 4096 2004-02-25 08:54 base > ... > > It leads to lots of unwanted errors. > rsyncd is claiming: > > 2004/08/06 00:53:42 [6722] readlink > "releases/i386/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1- > RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE > /5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1- > RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE > /5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1- > RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE/5.2.1-RELEASE > /5.2.1-RELEASE/packages/Latest/nessus-devel.tbz" (in FreeBSD) failed: Too many levels of symbolic links > > and it is producing lots of endless loops in other scenarios, too. Umm. The release directories have been set up that way for years now. I'm not sure what you're running for an rsyncd but it should know better than to try to follow symbolic links. Mine always have anyway. They know to report to the other end that it's a symbolic link and stops there. Check the past release directories, they all have the same style symlink in place. If your rsync is following symbolic links instead of stopping at them then it's actually going to cause a lot more problems, e.g. someone rsync-ing from you would wind up with the packages tree being copied as a separate thing in the location that last line you quote above shows. The ports/ section of the site is full of *tons* of symlinks which would cause lots of problems if your rsyncd is following symlinks instead of handling them as symlinks. > Please give your children a smaller sandbox to play, not the big one. Thanks, I haven't been accused of being a child for years now. Kinda refreshing. :-) [ I didn't put the symlink you're complaining about in place but I put some of the other similar ones there. :-]. -- Ken Smith - From there to here, from here to | kensmith@cse.buffalo.edu there, funny things are everywhere. | - Theodore Geisel |