* mv(1) seems to be using stat(2) instead of lstat(2)
@ 1993-07-20 17:43 Ray Butterworth [MFCF]
[not found] ` <23c2pd$dtu@paperboy.osf.org>
0 siblings, 1 reply; 2+ messages in thread
From: Ray Butterworth [MFCF] @ 1993-07-20 17:43 UTC (permalink / raw)
osf1[204]% ln -s file symlink
osf1[206]% ls -l
lrwxrwxr-x 1 rbutterw none 2 Jul 20 10:42 symlink -> file
osf1[207]% mv symlink s2
mv: symlink: No such file or directory
**** Wrong **** "mv" must be using "stat" instead of "lstat".
osf1[208]% echo kludge >file
osf1[210]% ls -l
-rw-rw-r-- 1 rbutterw none 7 Jul 20 10:51 file
lrwxrwxr-x 1 rbutterw none 2 Jul 20 10:42 symlink -> file
osf1[211]% mv symlink s2
osf1[212]% ls -l
-rw-rw-r-- 1 rbutterw none 4 Jul 20 10:51 file
lrwxrwxr-x 1 rbutterw none 2 Jul 20 10:42 s2 -> file
**** Correct **** It finally did what I wanted in the first place
but I needed to create a dummy file to do it.
osf1[213]% ln -s file symlink
osf1[214]% ls -l
-rw-rw-r-- 1 rbutterw none 4 Jul 20 10:51 file
lrwxrwxr-x 1 rbutterw none 2 Jul 20 10:52 symlink -> file
lrwxrwxr-x 1 rbutterw none 2 Jul 20 10:42 s2 -> file
osf1[215]% mv symlink s2
mv: symlink and s2 are identical (not moved)
**** Wrong again **** "mv" must still be using "stat" instead of "lstat".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-08-02 0:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-20 17:43 mv(1) seems to be using stat(2) instead of lstat(2) Ray Butterworth [MFCF]
[not found] ` <23c2pd$dtu@paperboy.osf.org>
1993-08-02 0:40 ` John Kohl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox