home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!amber!cavedog.athena.lkg.dec.com!mamros
- From: mamros@athena.lkg.dec.com (Shawn Mamros)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Help with ln -f -s
- Message-ID: <400424@athena.lkg.dec.com>
- Date: 3 Sep 92 14:07:36 GMT
- References: <61113@aurs01.UUCP>
- Sender: mamros@cavedog.athena.lkg.dec.com (Shawn Mamros)
- Reply-To: mamros@athena.lkg.dec.com (Shawn Mamros)
- Organization: Digital Equipment Corporation
- Lines: 18
-
-
- edwards@aurs01.uucp (A. J. Edwards) writes:
- >When I do the following command, sometimes I get the following
- >error that I don't really understand why and how it occurs.
-
- > ln -f -s /project/srcpool/sf601589_06d2.c ./obj/sf601589_06d2.c
- >./obj/sf601589_06d2.c: File exists
-
- I've seen this error occur whenever ./obj/sf601589_06d2.c already existed
- as a "dangling" symbolic link (i.e., a symbolic link where the file it points
- to doesn't exist). It turns out to be a bug in ln (one which should be fixed
- in a not-too-distant future release). In the meantime, the only real
- workaround is to "rm -f ./obj/sf601589_06d2.c" first. (It's also the most
- portable way of doing so, as some vendors' ln implementations don't allow
- the use of both -f and -s together - SunOS, for one...)
-
- -Shawn Mamros
- E-mail to: mamros@athena.lkg.dec.com
-