Also add #ifndef for compability with glibc before 2.12.
Signed-off-by: Sven Wegener
---
src/lxc/conf.c | 56 ++--
1 files changed, 34 insertions(+), 22 deletions(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index ae5b259..62b3727 100644
It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink.
Signed-off-by: Sven Wegener
---
src/lxc/conf.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 62b3727..483d375 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/c
On Fri, 22 Jan 2010, Sven Wegener wrote:
> the capabilities list contains a terminating NULL entry and looping over
> all entries by index results in a segfault on the last entry, if the
> capability in the config is invalid. switch to looping by pointer like
> the mount option code
the capabilities list contains a terminating NULL entry and looping over
all entries by index results in a segfault on the last entry, if the
capability in the config is invalid. switch to looping by pointer like
the mount option code does.
Signed-off-by: Sven Wegener
---
src/lxc/conf.c | 10