IABSD.fr/xenocara/app/cwm/util.c

Branch :


Log

Author Commit Date CI Message
493e33f3 2020-04-16 17:12:49 Prevent out of boundary write with configuration files in which too many quoted arguments are stored for other window managers. The quotation handling happens within the while loop without checking if the "end" limit has been already reached. If this happens, the final NULL assignment leads to an out of boundary write on stack. OK okan@
caa934d8 2020-02-27 14:56:39 Unrelated style fixes, consistency changes and sorting, appropriate dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
dbaf2f61 2019-04-29 19:03:20 Plug a memory leak in log_debug(); OK okan@
c6840459 2019-02-13 15:43:24 fix missing includes
5e4538db 2018-02-04 22:56:26 Slightly expand and expose verbose debugging.
231107e0 2018-02-02 13:40:55 Add a simple debug logging mechanism.
d6b2d66a 2018-01-08 16:21:54 Quick fix: exit after a failed execvp in u_spawn instead; previously we did in u_exec, but the introduction of re-exec'ing the previous invocation of cwm if 'exec_wm' failed missed the 'exec' failing path. Will likely split out as a proper fix. Odd behaviour reported by Ve Telko.
0bf4ad02 2017-12-29 20:09:19 If the replacement window manager fails to start, restart the fallback (the original invocation of cwm).
c10cac3b 2015-09-16 17:58:25 On execwm, we should properly release resources before exec'ing into a new window manager; so allow CWM_EXEC_WM to assign new wm to wm_argv and pass through cwm_status (now EXECWM) so that x_teardown() gets called before exec'ing the new window manager. Removes the need for a separate x_restart() now, using new wm_argv; and consolidates errno for execvp.
c199720b 2015-01-19 14:54:16 Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX and HOST_NAME_MAX+1, respectively. ok doug@
4f78cb68 2012-11-09 03:52:02 sort
bd65f031 2011-07-25 15:10:24 We are inconsistent when it comes to function returns, so just go all the way with the cwm specific parts. ok oga@
08f0ea6d 2011-06-24 05:40:09 alter a few function returns and prototypes; found by lint. ok oga@
4fb00eca 2011-05-11 13:53:51 tag and comment cleanup; ok oga@
ba93a73a 2009-12-15 04:10:42 pull all non-X11 headers from calmwm.h and place them only where they are required. encourged to go all the way by oga@
9dfa8ad1 2009-12-15 03:24:36 merge the 2 common header files; specific includes to be pulled out as separate commits. ok oga@
cfb9c394 2008-07-11 14:21:28 spacing, declaration lineup to be consistent throughout cwm, readability, and a bit of knf. ok oga@
45395219 2008-05-15 22:18:00 KNF, no binary change. From Pierre Riteau. Thanks!
8b3d596d 2008-04-15 21:20:56 make the argument parser for commands accept quoted strings, while i'm there make u_spawn use exec_wm (renamed to u_exec) for it's execution to remove duplicated code. This means constructs like this work in .cwmrc: bind CM-t "ssh -Y 192.168.1.2 \"xterm -e top\"" or alternatively: bind CM-t "ssh -Y 192.168.1.2 'xterm -e top'" "in it goes" okan@.
5559ba08 2008-04-15 20:26:50 Kill dirent_isdir() and dirent_islink() nothing used them since the new parser went in. ok okan.
26beb05a 2008-04-15 20:24:41 hit it with the knf stick.
43f7e322 2008-02-20 13:00:18 add exec_wm to calmwm.h, it was missing (bad ian@!) Also, exec_wm() currenty err()s out if something failed with the exec, killing the currently running wm. This is bad. Replace the err() with warn() instead. from Gleydson Soares, thanks!
78d22200 2008-01-16 11:39:20 huge amount of cleanup and dead code removal. full description of changes: -remove fontlist, and all associated structures/calls, it's not needed. this also removes any doubt about leftover 9wm code (the list was borrowed from it). Since cwm now uses Xft for everything, the legacy font handling is just not needed. -add /* FALLTHROUGH */ comments into grab_{label,menu}. I actually didn't intend grab_menu to be a fallthrough, but it actually works quite well there, so remove the extra rectangle drawing. I love it when that happens. -remove a couple of unused prototypes that were obviously missed before. -remove a bunch of commented out or if 0ed out code. It doesn't look to be coming back anytime soon. -several functions returned an int, but this was never checked. most of them only failed if they failed to grab the pointer (thus the internal state didn't change), so just make them void and return early if this is the case. -remove several unused functions and some useless variables. knocks something like 200bytes off the stripped binary size for me. ok marc@, tested by several others.
1385b565 2008-01-11 16:06:44 - Remove the "all rights reserved" tag at the top of most of the source files, and replace them with the actual ISC license. - add license to the manpage (it was lacking before) - correct license statement in the README Permission given by Marius (copyright holder): "1. please replace with the standard ISC license 2. you may add the ISC license to the man page 3. feel free to replace the information in the README as well" and Dros (copyright holder for group.c): "Please switch group.c to the ISC License." ok ian@
bb9a96e5 2007-11-28 16:35:52 Add a "restart wm" function. ok oga@
1d12f3d8 2007-04-27 17:58:48 Initial import of cwm-3. tested by sturm@, ok matthieu@