summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-27 05:44:58 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-27 05:44:58 +0000
commit341d29542235fd18b184b5bffb02d06e3b1e0fab (patch)
tree35a955443dae96df1145f8dcefdbb5751fbe4868 /winsup/cygwin/path.cc
parent4cb3e57917e23f1d0f616170083213b4b118bc1d (diff)
downloadcygnal-341d29542235fd18b184b5bffb02d06e3b1e0fab.tar.gz
cygnal-341d29542235fd18b184b5bffb02d06e3b1e0fab.tar.bz2
cygnal-341d29542235fd18b184b5bffb02d06e3b1e0fab.zip
* path.cc (symlink_info::check): Use new introducer for mknod'ed files.
(parse_device): Ditto. * syscalls.cc (mknod_worker): Ditto.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index d1e31ad9c..241660885 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2880,7 +2880,7 @@ symlink_info::parse_device (const char *contents)
_major_t myminor;
_mode_t mymode;
- mymajor = strtol (++contents, &endptr, 16);
+ mymajor = strtol (contents += 2, &endptr, 16);
if (endptr == contents)
return false;
@@ -3016,7 +3016,7 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt)
res = check_shortcut (suffix.path, fileattr, h, contents, &error, &pflags);
if (!res)
/* check more below */;
- else if (*contents == ':' && parse_device (contents))
+ else if (contents[0] == ':' && contents[1] == '\\' && parse_device (contents))
goto file_not_symlink;
else
break;