public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: util-linux@vger.kernel.org
Cc: Anton Cherkashyn <mail@antonc.com>
Subject: [PATCH] namespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/
Date: Fri, 8 Mar 2013 11:43:17 -0800	[thread overview]
Message-ID: <20130308194315.GA7638@jtriplet-mobl1> (raw)

This typo causes namespace.h to always unconditionally define
CLONE_NEWNS rather than using the system definition.

Bug present since the initial version of unshare in commit
4205f1fda1ac32046125a2e0f3937b666186bfab.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Anton Cherkashyn <mail@antonc.com>
---
 include/namespace.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/namespace.h b/include/namespace.h
index 3a219ce..9d58f13 100644
--- a/include/namespace.h
+++ b/include/namespace.h
@@ -4,7 +4,7 @@
 
 # include <sched.h>
 
-# ifndef CLONE_NEWSNS
+# ifndef CLONE_NEWNS
 #  define CLONE_NEWNS 0x00020000
 # endif
 # ifndef CLONE_NEWUTS
-- 
1.7.10.4


             reply	other threads:[~2013-03-08 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08 19:43 Josh Triplett [this message]
2013-03-13 13:47 ` [PATCH] namespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/ Karel Zak

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=20130308194315.GA7638@jtriplet-mobl1 \
    --to=josh@joshtriplett.org \
    --cc=mail@antonc.com \
    --cc=util-linux@vger.kernel.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