home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6661 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.3 KB

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