Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!ucsd!rutgers!njin!uupsi!sunic!nuug!barsoom!tih From: tih@barsoom.nhh.no (Tom Ivar Helbekkmo) Newsgroups: comp.unix.i386 Subject: SCO Unix 386 3.2.0 rename() fails on 14 char file names! Message-ID: <955@barsoom.nhh.no> Date: 3 Jul 90 18:37:22 GMT Distribution: comp Organization: Norwegian School of Economics Lines: 19 Just discovered a bug in the rename() library function under SCO Unix here... If either of the file names passed as parameters is 14 characters in length, the call fails with ENAMETOOLONG. Seems there's a fence-post error in there... :-) To work around it, use unlink(target); link(source, target); unlink(source); instead of rename(source, target); and you'll be OK. -tih -- Tom Ivar Helbekkmo, NHH, Bergen, Norway. Telephone: +47-5-959205 tih@barsoom.nhh.no, thelbekk@norunit.bitnet, edb_tom@debet.nhh.no