claudio
0d1a675fff
xenocara xlock uses imsg for privsep.
...
What changes:
- imsg_init becomes imsgbuf_init but imsgbuf_init can now fail
- Adding imsgbuf functions to hide the msgbuf functions:
msgbuf_clear -> imsgbuf_clear
msgbuf_write -> imsgbuf_write
- Also rename imsg_read to imsgbuf_read.
- Both imsgbuf_read and imsgbuf_write have simplified error handling.
imsgbuf_write now returns 0 on success so that old wrong connection
closed check must be removed
- Remove now official ibuf_get_string()
OK tb@ matthieu@
2024-11-21 13:45:40 +00:00
claudio
553e6668eb
Rewrite the privsep imsg code using the new ibuf API.
...
Properly wrap the imsg_read() / imsg_get() calls in a while loop.
Do not initialize the fd of the struct ibuf to -1 (this is already done).
Rewrite the imsg parser using imsg_get_ibuf(), ibuf_get and a local new
function ibuf_get_string() which abstracts the extraction of the strings
from the ibuf.
Properly clear and free the user, pass and style variables.
OK tb@ matthieu@
2024-01-22 10:13:34 +00:00
claudio
77f3ff527f
Replace another memset() with explicit_bzero() since the goal is the reason
...
why we have explicit_bzero().
OK matthieu@
2023-12-14 09:46:10 +00:00
claudio
f6e6877b93
Use proper len in strndup() call for the style argument.
...
OK matthieu@
2023-12-14 09:44:15 +00:00
jsg
60273ffa39
include signal.h for kill(2)
...
Remove an ifdef that prevented this. signal.h is part of posix
and dtucker@ notes OpenSSH portable uses it without ifdefs.
ok matthieu@ robert@
2023-09-06 09:29:25 +00:00
gnezdo
65d0a6644c
Properly support style in passwd\nOK matthieu
2022-08-29 18:11:41 +00:00
semarie
9417938ea8
xlock: unveil(2) all login.conf files for reading
...
auth_userokay(3) needs to be able to read these files to properly respect
configuration.
ok tb@ matthieu@
2022-07-07 05:00:19 +00:00
matthieu
6abf343886
Implement privilege separation in xlock(1).
...
With feedback from stsp@, florian@, op@ ok florian@ op@.
2022-06-26 14:09:51 +00:00
matthieu
537d712fc7
Remove the 30s minimum delay for xlock timeouts. From Alex Raschi.
2021-03-13 10:04:27 +00:00
deraadt
3b94b75328
use <signal.h> instead of <sys/signal.h>
...
ok matthieu
2020-09-22 15:57:29 +00:00
deraadt
4f8bdea832
disable opengl and mesa functionality
...
from matthieu, ok jsg
2019-12-03 17:44:29 +00:00
jsg
c2b80944a9
take a change from xlockmore 5.55 to make it build with llvm 6.0.0
...
ok matthieu@
2018-03-16 00:43:32 +00:00
naddy
bfc7bb1386
pass CC, CXX, CXXFLAGS to the xenocara build; ok matthieu@
2017-03-07 21:35:57 +00:00
jsg
ea91d72981
Bring in some changes from xlock 5.50 to prevent clang from erroring
...
out on ambiguous overloaded operators.
ok matthieu@
2017-02-04 02:35:01 +00:00
jsg
f3df8e0582
don't read past the end of an array
...
ok matthieu@
2015-04-24 02:18:26 +00:00
matthieu
7afaae9fe9
Install resource files in /usr/X11R6/share/X11/app-defaults
...
/etc/X11/app-defaults stays 1st in the libXt search path so, people
and ports can put customized versions there if needed.
If you didn't customize the versions in /etc/X11/app-defaults, they
should be removed to avoid future issues when one file changes.
discussed at g2k14 and ok ajacoutot@
2014-08-13 21:02:16 +00:00
matthieu
e329834eb9
set CONFIG_SITE in configure's environment.
2011-12-10 14:54:18 +00:00
matthieu
7ae39052df
xcb is no longer optional.
2011-03-08 20:48:59 +00:00
matthieu
57139a92f9
Set datarootdir. fixes manual page installing in the wrong dir noticed
...
by todd@.
2010-11-30 20:05:41 +00:00
matthieu
05303600f5
regen
2010-11-27 14:26:12 +00:00
matthieu
66473b7fbe
Explicitely link libxcb when needed for static arches.
2010-11-27 14:25:47 +00:00
matthieu
791220ead2
Disable ftgl support explictely.
2010-08-05 06:44:21 +00:00
matthieu
f4cf1775d9
Formatting fix. From Tim van der Molden.
2008-07-20 06:47:48 +00:00
matthieu
c6cf53ff4a
Explicitly disable rplay. Found by mbalmer@
2008-05-11 20:36:28 +00:00
matthieu
2249aa4d17
"fix" make distclean
2008-01-06 10:56:10 +00:00
matthieu
dfd79f109e
Fix libraries list for static architectures
2007-04-09 15:43:48 +00:00
matthieu
40441dfe2a
pass CFLAGS to configure
2007-04-07 15:45:13 +00:00
matthieu
4d981f1f43
don't assume mkinstalldirs is executable.
2007-03-18 19:41:57 +00:00
matthieu
805cce48aa
Explicitely disable ttf, to avoid picking the port's version.
...
Noticed by mbalmer@.
2007-02-04 21:07:34 +00:00
matthieu
7916deaa60
app-defaults live in /etc/X11/app-defaults
2006-11-28 19:07:42 +00:00
matthieu
78e2e44741
$Xenocara$ -> $OpenBSD$
2006-11-27 19:27:25 +00:00
matthieu
4842321c9a
Support installing in $(DESTDIR)
2006-11-27 13:24:18 +00:00
matthieu
577ea2674d
regen with OpenBSD autotools
2006-11-26 17:54:05 +00:00
matthieu
a972c460fa
OpenBSD customizations/adaptations:
...
- icons
- blank mode by default
- BSD auth
2006-11-26 17:13:23 +00:00
matthieu
7ee223ccc2
Build infrastructure for app
2006-11-26 14:03:40 +00:00
matthieu
110b2a9207
Importing xlockmore 5.22
2006-11-26 11:07:42 +00:00