Re: [PATCH] Fix block device symlink name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>@@ -352,6 +353,10 @@ static char *make_block_name(struct gend
> 		return NULL;
> 	strcpy(name, block_str);
> 	strcat(name, disk->disk_name);
>+	/* ewww... some of these buggers have / in name... */
>+	s = strchr(name, '/');
>+	if (s)
>+		*s = '!';
> 	return name;
> }
> 

Can they have multiple '/'? If so, we need a while loop.


Jan Engelhardt
-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux