* dir.cc (writable_directory): handle root directories
This commit is contained in:
parent
6eb63adf97
commit
98c6450eaa
@ -1,3 +1,7 @@
|
||||
2000-05-23 DJ Delorie <dj@cygnus.com>
|
||||
|
||||
* dir.cc (writable_directory): handle root directories
|
||||
|
||||
Tue May 23 10:09:26 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* uname.cc (uname): Use a "s" to denote a snapshot to avoid confusion
|
||||
|
@ -31,6 +31,10 @@ writable_directory (const char *file)
|
||||
char *slash = strrchr (dir, '\\');
|
||||
if (slash == NULL)
|
||||
usedir = ".";
|
||||
else if (slash == dir)
|
||||
{
|
||||
usedir = "\\";
|
||||
}
|
||||
else
|
||||
{
|
||||
*slash = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user