[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20131213105503.7a12ab18@nehalam.linuxnetplumber.net>
Date: Fri, 13 Dec 2013 10:55:03 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Chris J Arges <chris.j.arges@...onical.com>
Cc: dilip.daya@...com, "Eric W. Biederman" <ebiederm@...ssion.com>,
Brian Haley <brian.haley@...com>, shemminger@...l.org,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] Re: iproute2: potential upgrade regression with
58a3e827
On Fri, 13 Dec 2013 12:46:09 -0600
Chris J Arges <chris.j.arges@...onical.com> wrote:
> @@ -424,6 +424,7 @@ static int netns_add(int argc, char **argv)
> }
>
> /* Upgrade NETNS_RUN_DIR to a mount point */
> + errno = 0;
> if (mount(NETNS_RUN_DIR, NETNS_RUN_DIR, "none", MS_BIND, NULL)) {
> fprintf(stderr, "mount --bind %s %s failed: %s\n",
> NETNS_RUN_DIR, NETNS_RUN_DIR, strerror(errno));
It doesn't make sense that this changes anything.
errno is set by failed syscall. And the code here is smart enough
not to blindly check for (errno != 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