From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Apr 17 09:17:56 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id JAA24742
	Wed, 17 Apr 1996 09:17:56 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with SMTP id JAA24737
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 17 Apr 1996 09:17:14 +0900 (JST)
Received: (from mail@localhost) by hc-is.hitachi-cable.co.jp (8.6.12+2.5Wb7/3.4W) id JAA16726 for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 17 Apr 1996 09:16:40 +0900
Received: from unknown(150.88.70.2) by hc-is.hitachi-cable.co.jp via smap (V1.3)
	id sma016724; Wed Apr 17 09:16:30 1996
Received: from localhost (localhost [127.0.0.1]) by johp425.htk.hitachi-cable.co.jp (8.6.12+2.5Wb7/3.4W09/20/95) with ESMTP id JAA02178 for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 17 Apr 1996 09:16:29 +0900
From: Ito Kazumitsu <ito@htk.hitachi-cable.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
Mime-Version: 1.0
Content-Type: text/plain;charset="ISO-2022-JP"
Date: Wed, 17 Apr 1996 09:16:29 +0900
Message-ID: <2176.829700189@johp425.htk.hitachi-cable.co.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 1124
Subject: [FreeBSD-users-jp 1124] cannot remove symbolic links
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B0KF#!wF|N)EE@~$G$9!%(B

man 7 symlink $B$G8+$k$H(B

     Unlike other filesystem objects, symbolic links do not have an owner,
     group, permissions, access and modification times, etc.  The only at-
     tributes returned from an lstat(2) that refer to the symbolic link itself
     are the file type (S_IFLNK), size, blocks, and link count (always 1).
     The other attributes are filled in from the directory that contains the
     link.  For portability reasons, you should be aware that other implemen-
     tations (including historic implementations of 4BSD), implement symbolic
     links such that they have the same attributes as any other file.

$B$H$"$j$^$9$,(B, $B$3$N$3$H$G<c43:$$C$?$3$H$,$"$j$^$9!%(B

$B0lHL$N%f!<%6$,(B, 

     ln -s /some/file /tmp/tmpfile

$B$"$k$$$O(B mule $B$NCf$G(B

     (make-symbolic-link "/some/file" "/tmp/tmpfile")

$B$r9T$J$&$H(B, /tmp/tmpfile $B$N(B owner $B$,(B /tmp $B$N(B owner $B$G$"$k(B bin $B$K(B
$B$J$C$F$7$^$$$^$9!%$9$k$H(B, /tmp/tmpfile $B$,ITMW$K$J$C$F:o=|$7$h$&$H(B
$B$7$F$b!$0lHL$N%f!<%6$G$O8"8B$,$J$$$?$a$K:o=|$G$-$^$;$s!%(B

$B$3$N$3$H$O(B, $B$?$H$($P<!$N$h$&$J>l9g$KLdBj$K$J$j$^$9!%(Bw3 $B$G(B
$B2hA|%U%!%$%k$r8+$h$&$H$9$k$H(B, w3-pass-to-viewer $B$,$=$N(B
$B%U%!%$%k$KBP$9$k(B symbolic link $B$r(B /tmp $B$K:n$j(B, viewer $B$K(B
$BEO$9$N$G$9$,(B, $B=hM}:Q$_$K$J$C$F$b(B /tmp $B$K:n$C$?(B symbolic link $B$,(B
$B:o=|$G$-$:(B, $B%4%_$H$7$F;D$C$F$7$^$$$^$9!%(B

$B$3$NNc$G$O(B, w3-pass-to-viewer $B$r>/$7=q$-49$($F(B /tmp $B$G$O$J$/(B
$B%f!<%6$,=jM-$9$k%G%#%l%/%H%j$K(B symbolic link $B$r:n$l$P2r7h(B
$B$7$^$9$,(B, $B$3$N<j$NLdBj$OJ}!9$K$"$j$=$&$G$9!%LdBj$K1~$8$F(B
$B8DJLBP1~$9$k$7$+$J$$$N$G$7$g$&$+(B.

$BF|N)EE@~!J3t!K>pJs4IM}<<(B $B0KF#0l8w(B (Ito Kazumitsu) ito@htk.hitachi-cable.co.jp
