Commit Graph

6 Commits

Author SHA1 Message Date
Érico Nogueira Rolim
fa42781cb9 Make the project compilable with clang. (#163)
Clang generates more warning messages, such as pointing out a lack
of newline at end of file and issues with the size of a strncopy.

Moving -Wno-unused-parameter to the end of the flags avoids it being
overwritten by -Wextra.

Removing -Werror avoids compilation errors that may arise from new
compiler warnings that might come from newer versions of compilers.
2020-02-01 18:23:25 +01:00
Stanislav Láznička
ecaea4131b Implement utmp audit (#133)
Implements utmp audit required by policykit.

This commit also flattens the pidtree for the DM by starting the
display environment directly in the first fork which already should
have the environment ready for this purpose. This is with the
exception of xorg environments where this can't be done that easily.
2019-12-06 16:10:27 +01:00
Roosemberth Palacios
f650e82f93 login.c: Do not overwrite the PATH variable if config.path element is empty (#135)
This allows disabling the feature if PATH was already set (e.g. by the systemd session
slice) and the user wishes to honor that.

Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-31 00:03:35 +01:00
Stanislav Láznička
9486f05e59 cosmetic changes + enter behavior (#126)
* remove trailing whitespace

* always submit password on enter

Moves the keypress logic for keypresses from if-else statements
to switches, adds non-contextual behavior on pressing enter

* wrap pam actions and handle errors at on spot

* init all of text struct in input_text()

This gets rid off valgrind warning on unitialized variables
2019-10-04 20:50:02 +02:00
nullgemm
ce07938ccf set LANG 2019-09-21 18:34:03 +02:00
nullgemm
efc5c49de5 initial commit 2019-06-10 16:05:54 +02:00