[PATCH 1/1] weston-launch: alter tty command line parameter semantics

2013-10-02 Thread Alex DAMIAN
From: Alexandru DAMIAN Current behaviour of the tty parameter is to take effect only if there is a new user starting up. Since it is useful to start weston-launch with a command line specified tty, I'm changing the semantics of the tty parameter: * the argument to the --tty parameter is now man

[PATCH] compositor-drm: fix EGL format type

2013-10-02 Thread Alex DAMIAN
From: Alexandru DAMIAN EGLInt is not always uint32_t so we need to make sure we use the right int size for the format. Signed-off-by: Alexandru DAMIAN --- src/compositor-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index

[PATCH 1/1] option-parser: mark option value arguments as parsed

2013-09-26 Thread Alex DAMIAN
From: Alexandru DAMIAN Weston options in long name format may have the values separated from option name by the '=' character, or specified as a separate argument, e.g. "--config value". If the option value is a separate argument, we need to mark that argument as parsed and not try to reiterate

[PATCH 1/1] config: add command line option for config file

2013-09-26 Thread Alex DAMIAN
From: Alexandru DAMIAN Added an option to specify the weston.ini config file to be used. Defaults to ${PWD}/weston.ini Adding a check in weston_config_full_path so that we don't crash if we started without a config file. Fixing a typo in help message. Signed-off-by: Alexandru DAMIAN --- shar

[PATCH v3 1/2] config: verify that the config file is not null

2013-09-25 Thread Alex DAMIAN
From: Alexandru DAMIAN weston_config_parse may return NULL, leading to an ungraceful exit via SIGSEGV if we try to reference the structure. Adding a check in weston_config_full_path so that we return the empty file /dev/null as filename if we started without a config file. Signed-off-by: Alexan

[[PATCH v3 2/2]] compositor: check if seteuid worked

2013-09-25 Thread Alex DAMIAN
From: Alexandru DAMIAN Checking the return value from seteuid in order to not launch clients with the wrong effective uid. Signed-off-by: Alexandru DAMIAN --- src/compositor.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index b

[PATCH v2 2/2] compositor: check if seteuid worked

2013-09-25 Thread Alex DAMIAN
From: Alexandru DAMIAN Checking the return value from seteuid in order to not launch clients with the wrong effective uid. Signed-off-by: Alexandru DAMIAN --- src/compositor.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index b

[PATCH v2 1/2] config: verify that the config file has been parsed

2013-09-25 Thread Alex DAMIAN
From: Alexandru DAMIAN weston_config_parse may return NULL, leading to an ungraceful exit via SIGSEGV. Adding a nice check that gracefully exits the compositor when the config.ini parsing failed. Signed-off-by: Alexandru DAMIAN --- src/compositor.c | 4 1 file changed, 4 insertions(+) d

[PATCH] config: verify that the config file has been parsed

2013-09-25 Thread Alex DAMIAN
From: Alexandru DAMIAN weston_config_parse may return NULL, leading to an ungraceful exit via SIGSEGV. Adding a nice check that gracefully exits the compositor when the config.ini parsing failed. Signed-off-by: Alexandru DAMIAN --- src/compositor.c | 4 1 file changed, 4 insertions(+) d