From: Andreas Henriksson <andreas@fatal.se>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>,
Alexander Wirt <formorer@debian.org>
Cc: shemminger@linux-foundation.org, netdev@vger.kernel.org
Subject: Re: iproute2: resend of patches from Debian.
Date: Thu, 11 Oct 2007 21:59:56 +0200 [thread overview]
Message-ID: <1192132796.4733.7.camel@localhost.localdomain> (raw)
In-Reply-To: <20071011192509.GA4004@csclub.uwaterloo.ca>
On tor, 2007-10-11 at 15:25 -0400, Lennart Sorensen wrote:
> On Thu, Oct 11, 2007 at 08:25:32PM +0200, Andreas Henriksson wrote:
> > Patch from debian iproute package.
> >
> > diff -urNad iproute-20060323~/ip/iplink.c iproute-20060323/ip/iplink.c
> > --- iproute-20060323~/ip/iplink.c 2006-03-22 00:57:50.000000000 +0100
> > +++ iproute-20060323/ip/iplink.c 2006-09-08 21:07:14.000000000 +0200
> > @@ -384,6 +384,10 @@
> > }
> >
> > if (newname && strcmp(dev, newname)) {
> > + if (strlen(newname) == 0) {
> > + printf("\"\" is not valid device identifier\n",dev);
> > + return -1;
> > + }
> > if (do_changename(dev, newname) < 0)
> > return -1;
> > dev = newname;
>
> Isn't that printf missing somewhere for the 'dev' argument to go?
This is not my patch so I don't know what the original intention was,
but now that you point it out I'd say that the dev argument should just
be removed.
The new check is for an empty new name.... old name (dev) probably isn't
interesting.
I think Alexander Wirt is the original author, lets CC and see if he has
a comment...
--
Regards,
Andreas Henriksson
next prev parent reply other threads:[~2007-10-11 20:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-11 18:25 iproute2: resend of patches from Debian Andreas Henriksson
2007-10-11 19:25 ` Lennart Sorensen
2007-10-11 19:59 ` Andreas Henriksson [this message]
2007-10-12 5:55 ` Alexander Wirt
2007-10-11 20:11 ` Stephen Hemminger
2007-10-11 20:32 ` Andreas Henriksson
2007-10-11 20:30 ` Patrick McHardy
2007-10-11 21:22 ` Andreas Henriksson
2007-10-11 21:48 ` David Miller
2007-10-11 22:35 ` Andreas Henriksson
2007-10-11 22:38 ` David Miller
2007-10-12 5:50 ` Alexander Wirt
2007-10-12 8:34 ` David Miller
2007-10-11 23:54 ` Stephen Hemminger
2007-10-11 21:05 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1192132796.4733.7.camel@localhost.localdomain \
--to=andreas@fatal.se \
--cc=formorer@debian.org \
--cc=lsorense@csclub.uwaterloo.ca \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).