On Monday 17 April 2006 23:12, you wrote: > @@ -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; > } Is only one / possible, or better something like this? /* ewww... some of these buggers have / in name... */ s = name; while ((s = strchr(s, '/')) != NULL) *s = '!'; -- Greetings Michael.
Attachment:
pgpiT4FuQ48P2.pgp
Description: PGP signature
- Follow-Ups:
- Re: Linux 2.6.16.6
- From: Linus Torvalds <[email protected]>
- Re: Linux 2.6.16.6
- From: Kyle Moffett <[email protected]>
- Re: Linux 2.6.16.6
- References:
- Linux 2.6.16.6
- From: Greg KH <[email protected]>
- Re: Linux 2.6.16.6
- From: Greg KH <[email protected]>
- Linux 2.6.16.6
- Prev by Date: Re: [RESEND][RFC][PATCH 2/7] implementation of LSM hooks
- Next by Date: Re: PCI Device Driver / remap_pfn_range()
- Previous by thread: Re: Linux 2.6.16.6
- Next by thread: Re: Linux 2.6.16.6
- Index(es):