diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-27 09:44:58 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-27 09:44:58 +0400 |
commit | 341d29542235fd18b184b5bffb02d06e3b1e0fab (patch) | |
tree | 35a955443dae96df1145f8dcefdbb5751fbe4868 /winsup/cygwin/syscalls.cc | |
parent | 4cb3e57917e23f1d0f616170083213b4b118bc1d (diff) |
* 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/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 51ce08e2f..8c53af20e 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2033,8 +2033,8 @@ static int __stdcall mknod_worker (const char *path, mode_t type, mode_t mode, _major_t major, _minor_t minor) { - char buf[sizeof (":00000000:00000000:00000000") + MAX_PATH]; - sprintf (buf, ":%x:%x:%x", major, minor, + char buf[sizeof (":\\00000000:00000000:00000000") + MAX_PATH]; + sprintf (buf, ":\\%x:%x:%x", major, minor, type | (mode & (S_IRWXU | S_IRWXG | S_IRWXO))); return symlink_worker (buf, path, true, true); } |