On Wed, Nov 28, 2007 at 09:01:50AM -0000, [EMAIL PROTECTED] wrote: > Author: younes > Date: Wed Nov 28 10:01:49 2007 > New Revision: 21843 > > URL: http://www.lyx.org/trac/changeset/21843 > Log: > * FileName: > - removeFile(): replace unlink > - copyTo(): add 'overwrite' parameter. > > * getcwd.cpp: simplify. ... > // Returns current working directory > FileName const getcwd() > { > - int n = 256; // Assume path is less than 256 chars > - char * err; > - scoped_array<char> tbuf(new char[n]); > - > - // Safe. Hopefully all getcwds behave this way! > - while (((err = l_getcwd(tbuf.get(), n)) == 0) && (errno == ERANGE)) { > - // Buffer too small, double the buffersize and try again > - n *= 2; > - tbuf.reset(new char[n]); > - } > - > - string result; > - if (err) > - result = tbuf.get(); > - return > FileName(os::internal_path(to_utf8(from_filesystem8bit(result)))); > + return FileName(".");
This one will trigger the assertion about the absolute path. -- Enrico