* path.cc (symlink_info::check): Use new introducer for mknod'ed files.

(parse_device): Ditto.
* syscalls.cc (mknod_worker): Ditto.
This commit is contained in:
Christopher Faylor
2003-09-27 05:44:58 +00:00
parent 4cb3e57917
commit 341d295422
3 changed files with 10 additions and 4 deletions

View File

@@ -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);
}