Re: [PATCH] Fix block device symlink name

From: Jan Engelhardt
Date: Tue Apr 11 2006 - 07:38:36 EST


>@@ -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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/