mirror of
https://github.com/javalsai/lidm.git
synced 2026-02-27 12:00:44 +01:00
chore: clang-format
This commit is contained in:
10
src/auth.c
10
src/auth.c
@@ -137,7 +137,8 @@ static void push_dyn_arr(void*** arr, void* item) {
|
|||||||
// TODO: properly pass this down
|
// TODO: properly pass this down
|
||||||
extern int vt;
|
extern int vt;
|
||||||
|
|
||||||
static void start_xorg_server(struct passwd* pw, char** NNULLABLE envlist, int xorg_pipefd[2]) {
|
static void start_xorg_server(struct passwd* pw, char** NNULLABLE envlist,
|
||||||
|
int xorg_pipefd[2]) {
|
||||||
close(xorg_pipefd[0]);
|
close(xorg_pipefd[0]);
|
||||||
if (!pw->pw_dir) _exit(EXIT_FAILURE);
|
if (!pw->pw_dir) _exit(EXIT_FAILURE);
|
||||||
// !!!!!!!!!! ATTENTION: this fails silently, of course add failure msgs but
|
// !!!!!!!!!! ATTENTION: this fails silently, of course add failure msgs but
|
||||||
@@ -158,12 +159,13 @@ static void start_xorg_server(struct passwd* pw, char** NNULLABLE envlist, int x
|
|||||||
|
|
||||||
char* xorg_path = search_path("Xorg");
|
char* xorg_path = search_path("Xorg");
|
||||||
if (!xorg_path) {
|
if (!xorg_path) {
|
||||||
(void)fputs("couldn't find Xorg binary in PATH, sure it's installed?\n", stderr);
|
(void)fputs("couldn't find Xorg binary in PATH, sure it's installed?\n",
|
||||||
|
stderr);
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int exit = execle(xorg_path, xorg_path, "-displayfd", fd_str, vt_path,
|
int exit = execle(xorg_path, xorg_path, "-displayfd", fd_str, vt_path, NULL,
|
||||||
NULL, envlist);
|
envlist);
|
||||||
perror("exec");
|
perror("exec");
|
||||||
|
|
||||||
free(vt_path);
|
free(vt_path);
|
||||||
|
|||||||
Reference in New Issue
Block a user