Commit 5058332f authored by Stephen Hemminger's avatar Stephen Hemminger

Revert "don't allow "" for device name"

Use Patrick's instead

This reverts commit ba371d98.
parent 59cc4f73
......@@ -336,8 +336,6 @@ static int iplink_modify(int cmd, unsigned int flags, int argc, char **argv)
if (name) {
len = strlen(name) + 1;
if (len == 1)
invarg("null string is not valid name\n");
if (len > IFNAMSIZ)
invarg("\"name\" too long\n", *argv);
addattr_l(&req.n, sizeof(req), IFLA_IFNAME, name, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment