[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <497390FE.4050909@msgid.tls.msk.ru>
Date: Sun, 18 Jan 2009 23:28:46 +0300
From: Michael Tokarev <mjt@....msk.ru>
To: matvejchikov@...il.com
CC: netdev@...r.kernel.org
Subject: Re: [PATCH] net: A little dev_valid_name() improvement
Matvejchikov Ilya wrote:
> This patch removes redundant complexity when checking the
> network device name to be valid.
And also disallows any name starting with a dot, while
previously it was allowed/valid.
I don't think this patch is good.
/mjt
> - if (*name == '\0')
> + if (*name == '\0' || *name == '.')
> return 0;
> - if (!strcmp(name, ".") || !strcmp(name, ".."))
> - return 0;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists