Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* 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

* Re: mv(1) seems to be using stat(2) instead of lstat(2)
       [not found] ` <23c2pd$dtu@paperboy.osf.org>
@ 1993-08-02  0:40   ` John Kohl
  0 siblings, 0 replies; 2+ messages in thread
From: John Kohl @ 1993-08-02  0:40 UTC (permalink / raw)


In article <23c2pd$dtu@paperboy.osf.org> tom@surf.osf.org (Tom Jordahl) writes:

> In article <CAH57t.Bs9@math.uwaterloo.ca> rbutterw@math.uwaterloo.ca (Ray Butterworth [MFCF]) writes:
> >**** Wrong ****  "mv" must be using "stat" instead of "lstat".

> You are correct.  The OSF/1 R1.0 source had this problem.
> This was fix in Release 1.1 (OSF bug # 6163).  You should report
> this to DEC.

No need! I found this and reported it earlier.  It's fixed in DEC OSF/1
V1.3, which is available (at leas in the USA) now.
--
John Kohl <jtkohl@zk3.dec.com> or <jtkohl@mit.edu>
working for but not representing:	Digital Equipment Corporation
What are you pretending not to know?


^ 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