From owner-freebsd-questions Fri Nov 30 6:11:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id A856D37B405 for ; Fri, 30 Nov 2001 06:11:43 -0800 (PST) Received: (qmail 42136 invoked by uid 100); 30 Nov 2001 14:11:43 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="4/tlKSu8+4" Content-Transfer-Encoding: 7bit Message-ID: <15367.37791.137010.486401@guru.mired.org> Date: Fri, 30 Nov 2001 08:11:43 -0600 To: "Totally Jayyness" Cc: Subject: Re: Not using Symbolic links correctly? In-Reply-To: <005901c17950$275040c0$0300a8c0@jayyness.com> References: <15365.65245.491684.81189@guru.mired.org> <006701c178ef$0736bff0$0300a8c0@jayyness.com> <15366.45817.877900.681798@guru.mired.org> <005901c17950$275040c0$0300a8c0@jayyness.com> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --4/tlKSu8+4 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit [Context lost to top posting.] Totally Jayyness types: > Found this... don't think I can do what I want with ln > "Hard links may not normally refer to directories and may not span file > systems." > > Can I mount a mount point in a second place? No. If it says "normally", you may want to try the attached program, but it may not work either. If you're going across file systems, hard links can't be used at all. You might consider turning things around, and put the files in your chroot'ed area then make /mp3s a link to that. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. --4/tlKSu8+4 Content-Type: text/plain Content-Description: Program to make a link without sanity checking Content-Disposition: inline; filename="makelink.c" Content-Transfer-Encoding: 7bit /* C program to make a link, no excuses */ #include #include main(int argc, char **argv) { if (argc != 3) { fprintf(stderr, "usage: %s source dest\n", argv[0]) ; return 10 ; } if (link(argv[1], argv[2])) { perror(argv[0]) ; return 10 ; } return 0 ; } --4/tlKSu8+4-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message