Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: rbutterw@math.uwaterloo.ca (Ray Butterworth [MFCF])
Subject: mv(1) seems to be using stat(2) instead of lstat(2)
Date: Tue, 20 Jul 1993 17:43:04 GMT	[thread overview]
Message-ID: <CAH57t.Bs9@math.uwaterloo.ca> (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".


             reply	other threads:[~1993-07-20 17:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-20 17:43 Ray Butterworth [MFCF] [this message]
     [not found] ` <23c2pd$dtu@paperboy.osf.org>
1993-08-02  0:40   ` mv(1) seems to be using stat(2) instead of lstat(2) John Kohl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox