lkml.org 
[lkml]   [2006]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2006-04-11 13:40    [W:0.047 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site