mirror_lxc/config
Lucas Werkmeister e0bc106769
Use POSIX-compliant function names in bash completion
When running in posix mode (for example, because it was invoked as `sh`,
or with the --posix option), bash rejects the function names previously
used because they contain hyphens, which are not legal POSIX names, and
exits immediately.

This is a particularly serious problem on a system in which the
following three conditions hold:

1. The `sh` executable is provided by bash, e. g. via a symlink
2. Gnome Display Manager is used to launch X sessions
3. Bash completion is loaded in the (system or user) profile file
   instead of in the bashrc file

In that case, GDM's Xsession script (run with `sh`, i. e., bash in posix
mode) sources the profile files, thus causing the shell to load the bash
completion files. Upon encountering the non-POSIX-compliant function
names, bash would then exit, immediately ending the X session.

Fixes #521.

Signed-off-by: Lucas Werkmeister <mail@lucaswerkmeister.de>
2015-05-14 22:39:06 +02:00
..
apparmor apparmor: support lxc.ttydir when bind-mounting ptys 2015-01-30 01:02:06 +01:00
bash Use POSIX-compliant function names in bash completion 2015-05-14 22:39:06 +02:00
etc Rework init scripts 2014-09-26 10:55:11 -04:00
init Call /lib/apparmor/profile-load directly instead of the wrapper 2015-05-07 13:38:50 +02:00
selinux provide an example SELinux policy for older releases 2014-07-31 14:12:25 -04:00
sysconfig sysconfig/lxc: Reverse sourcing logic 2014-09-29 18:43:36 -04:00
templates templates: gentoo.common: Add /dev/shm tmpfs mount entry 2015-03-12 20:53:10 +00:00
yum install lxc-patch.py 644 to fix rpmlint warning 2014-05-07 08:48:20 -05:00
acinclude.m4 Remove all trailing whitespaces. 2012-11-26 12:08:13 -05:00
Makefile.am Rework init scripts 2014-09-26 10:55:11 -04:00
tls.m4 check pthread_atfork and thread-local storage 2014-01-06 09:46:32 -05:00