/* XXX: does no error checking on @path size  */
static char* sysfs_pathname(struct sysfs_dirent *sd, char *path)
/* XXX: does no error checking on @path size  */
static char* sysfs_pathname(struct sysfs_dirent *sd, char *path)
{
	if (sd->s_parent) {
		sysfs_pathname(sd->s_parent, path);
		strcat(path, "/");
	}
	strcat(path, sd->s_name);
	return path;
}