Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 1999 18:17:49 -0500 (EST)
From:      James Howard <howardjp@wam.umd.edu>
To:        "Matthew D. Fuller" <fullermd@futuresouth.com>
Cc:        Bakul Shah <bakul@torrentnet.com>, Steve Kargl <sgk@troutmask.apl.washington.edu>, FreeBSD Current <freebsd-current@FreeBSD.ORG>
Subject:   Re: removing enigma(1)
Message-ID:  <Pine.OSF.3.95q.991201181705.17893A-100000@frost.umd.edu>
In-Reply-To: <19991201155354.M22444@futuresouth.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 1 Dec 1999, Matthew D. Fuller wrote:

> On Wed, Dec 01, 1999 at 04:36:12PM -0500, a little birdie told me
> that James Howard remarked
> > On Wed, 1 Dec 1999, Matthew D. Fuller wrote:
> > >
> > > [15:25:53] mortis:~
> > > (ttyp9):{838}% ll -i `which crypt` `which enigma`
> > > 23155 -r-xr-xr-x  2 root  wheel  4980 Oct 29 13:47 /usr/bin/crypt*
> > > 23155 -r-xr-xr-x  2 root  wheel  4980 Oct 29 13:47 /usr/bin/enigma*
> > 
> > Why is that a hard link instead of a symbolic link?
> 
> Probably the same reason most (all?) things in the base system that run
> linked are hard links:
> (ll -i | sort is instructive)
> 
> /sbin:
> 14445 -r-xr-xr-x   2 root  wheel     150840 Oct 29 13:46 mount_mfs*
> 14445 -r-xr-xr-x   2 root  wheel     150840 Oct 29 13:46 newfs*
> (That's pretty cool, if mildly weird)
> 14442 -r-xr-xr-x   5 root  wheel      59756 Oct 29 13:46 mount_devfs*
> 14442 -r-xr-xr-x   5 root  wheel      59756 Oct 29 13:46 mount_fdesc*
> 14442 -r-xr-xr-x   5 root  wheel      59756 Oct 29 13:46 mount_kernfs*
> 14442 -r-xr-xr-x   5 root  wheel      59756 Oct 29 13:46 mount_procfs*
> 14442 -r-xr-xr-x   5 root  wheel      59756 Oct 29 13:46 mount_std*
> 
> /bin:
> 124 -r-xr-xr-x   2 root  wheel      48592 Oct 29 13:43 [*
> 124 -r-xr-xr-x   2 root  wheel      48592 Oct 29 13:43 test*
> 
> Sendmail the same way (I can't show it since I have Postfix installed,
> but...)  (Ah, here's another system:)
> 430769 -r-sr-xr-x  5 root  7  290816 Nov 18  1998 /usr/bin/mailq*
> 430769 -r-sr-xr-x  5 root  7  290816 Nov 18  1998 /usr/bin/newaliases*
> 430769 -r-sr-xr-x  5 root  7  290816 Nov 18  1998 /usr/sbin/sendmail*

Let me rephrase the question.  Why (in general) are hard links used
instead of symbolic links?  Symlinks are used on the man pages, why not on
the binaries?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95q.991201181705.17893A-100000>