home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!ukma!wupost!sdd.hp.com!hp-col!fc.hp.com!ec
- From: ec@fc.hp.com (Edgar_Circenis)
- Subject: Re: bug in rename(2)...
- Sender: news@fc.hp.com (news daemon)
- Message-ID: <BxtMBp.95x@fc.hp.com>
- Date: Mon, 16 Nov 1992 18:07:00 GMT
- References: <RDM.92Nov16173714@hpsalo.cern.ch>
- Organization: Hewlett-Packard Fort Collins Site
- X-Newsreader: TIN [version 1.1.8 PL6]
- Lines: 27
-
- Fons Rademakers (rdm@hpsalo.cern.ch) wrote:
- >
- > I found that rename(file1, file2) was overwriting some of my global vars
- > when file1 did not exist. A simple test on the existence of file1 solved the
- > problem. However, rename should never overwrite anything. I noticed that
- > my global vars contained after the rename function the string:
- > `file1' not existent (ut4) using xunlink.
- >
- > Hopefully this has been fixed in 9.0. Or does this bug report causes 9.0
- > to be delayed for another week -:).
- >
- > Regards, Fons Rademakers.
-
- You are using the rename() function in libPW if you are getting this
- error message. The system call stub for rename(2) is in libc. Whenever
- you use libPW, you must make sure that libc is linked into your application
- before libPW gets linked for precisely this reason. libPW has historically
- had its own rename function.
-
- If you are using libPW for the regex() functionality, you might consider
- switching to the POSIX standard regcomp/regexec found in libc.
-
- Edgar
-
- --------------
- Disclaimer: This information may or may not be correct. HP may not agree
- with me. I may not agree with myself....
-