Messages in this thread | | | Date | Tue, 11 Apr 2006 13:38:09 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Re: [PATCH] Fix block device symlink name |
| |
>@@ -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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |