From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c5e57aab55ad8e08,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-07-20 11:44:55 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!torn!watserv2.uwaterloo.ca!watmath!rbutterw From: rbutterw@math.uwaterloo.ca (Ray Butterworth [MFCF]) Subject: mv(1) seems to be using stat(2) instead of lstat(2) Message-ID: Sender: news@math.uwaterloo.ca (News Owner) Organization: Math Faculty Computing Facility, University of Waterloo Date: Tue, 20 Jul 1993 17:43:04 GMT 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".