(parse_device): Ditto.
* syscalls.cc (mknod_worker): Ditto.
+2003-09-27 Christopher Faylor <cgf@redhat.com>
+
+ * path.cc (symlink_info::check): Use new introducer for mknod'ed files.
+ (parse_device): Ditto.
+ * syscalls.cc (mknod_worker): Ditto.
+
2003-09-27 Christopher Faylor <cgf@redhat.com>
* devices.shilka: Add /dev/sda disk devices.
_major_t myminor;
_mode_t mymode;
- mymajor = strtol (++contents, &endptr, 16);
+ mymajor = strtol (contents += 2, &endptr, 16);
if (endptr == contents)
return false;
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;
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);
}