diff options
author | Christopher Faylor <me@cgf.cx> | 2003-10-02 03:50:10 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-10-02 03:50:10 +0000 |
commit | 6cb54a4ceef86fbc1e83e2f2a79d1d4f120fde04 (patch) | |
tree | c1ddd26a1cf04755e1157995665ee44812f9ee89 /winsup/cygwin/path.cc | |
parent | db0d31d13e9628f11bf0306e7709eec5860f9efa (diff) | |
download | cygnal-6cb54a4ceef86fbc1e83e2f2a79d1d4f120fde04.tar.gz cygnal-6cb54a4ceef86fbc1e83e2f2a79d1d4f120fde04.tar.bz2 cygnal-6cb54a4ceef86fbc1e83e2f2a79d1d4f120fde04.zip |
* path.cc (win32_device_name): Only fill out destination buffer when it's
really a device.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 90bb9be82..4dae40c64 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -895,12 +895,14 @@ digits (const char *name) /* Return TRUE if src_path is a Win32 device name, filling out the device name in win32_path */ -static BOOL +static bool win32_device_name (const char *src_path, char *win32_path, device& dev) { dev.parse (src_path); + if (dev.devn == FH_FS) + return false; strcpy (win32_path, dev.native); - return dev.devn != FH_FS; + return true; } /* Normalize a Win32 path. |