1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-09 22:38:01 -08:00
openbsd-src/games
mestre bda84ce940 if both stdout and stderr are redirected to a non-tty, pledge(2) will kill
ncurses applications, e.g.:

/usr/games/worms 2>&1 | cat

solve this by only calling pledge(2) after initscr(3) is set and done, or
whatever function that calls it. since pledge(2) is called later now the
promises might be reduced, but this a diff for another day.

found by naddy@ almost a year ago, discussed with him deraadt@ and tb@
ok tb@
2021-10-23 11:22:48 +00:00
..
adventure satisfy -fno-common by duplicating deck chairs as required 2021-01-27 01:59:39 +00:00
arithmetic convert to unsigned variables to avoid some overflows. 2018-12-27 17:27:23 +00:00
atc if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
backgammon if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
banner More fixes from David Fifield: 2018-10-16 20:06:42 +00:00
battlestar if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
bcd Be more specific regarding which encoding this simulator generates: 2019-09-08 22:43:46 +00:00
boggle if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
bs if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
caesar patch from <tleguern at bouledef dot eu> to support backward rotation, 2019-05-15 15:59:24 +00:00
canfield Ignore special keys returned by the curses getch() function. 2021-01-21 20:08:17 +00:00
cribbage if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
factor In 32 bits sqrt(val) + 1 can overflow, so some big primes still 2016-09-01 10:48:38 +00:00
fish - General changes: 2016-03-07 12:07:55 +00:00
fortune - guiness -> guinness 2021-08-24 20:04:28 +00:00
gomoku if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
grdc if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
hack Fix intercardinal directions in hack help. 2021-03-07 17:08:49 +00:00
hangman if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
hunt no need to declare "extern optarg" and "extern optind" 2020-02-14 19:17:33 +00:00
mille if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
monop When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +00:00
morse - General changes: 2016-03-07 12:07:55 +00:00
number - General changes: 2016-03-07 12:07:55 +00:00
phantasia Remove extraneous for() likely caused by copy & paste. 2021-04-29 01:57:00 +00:00
pig eaktway eviouspray; 2019-05-12 06:07:36 +00:00
pom Consolidate printf(3) calls at the end of main(). 2017-12-24 22:12:49 +00:00
ppt - General changes: 2016-03-07 12:07:55 +00:00
primes Straightforward conversion to strtonum. Slight change of behavior in that 2017-11-02 10:37:11 +00:00
quiz quiz: handle line continuation in data files correctly, switch to getline(3) 2021-03-11 21:18:25 +00:00
rain if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
random - General changes: 2016-03-07 12:07:55 +00:00
robots if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
sail When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +00:00
snake When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +00:00
tetris Change the error reporting pattern throughout the tree when unveil 2021-07-12 15:09:18 +00:00
trek Add some references, most of these were removed when we stopped building 2021-03-08 02:47:25 +00:00
wargames a few depend:-related thingies that were still in. 2019-12-21 21:39:59 +00:00
worm Remove a few too early pledge(2)s on games/ and apply them a little bit later 2018-08-24 11:14:49 +00:00
worms if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
wump Move a badly positioned parenthesis that caused nonsensical movement 2018-12-20 09:55:44 +00:00
Makefile
Makefile.inc Build most of games/ with -Werror-implicit-function-declaration. 2015-12-28 20:55:55 +00:00