Re: snake: unveil + pledge earlier

2019-05-27 Thread Theo de Raadt
Ted Unangst wrote: > Jake Champlin wrote: > > - readscores(1); > > penalty = loot = 0; > > initscr(); > > + if (unveil(scorepath, "rwc") == -1) > > + err(1, "unveil"); > > +#ifdef LOGGING > > + if (unveil(logpath, "rwc") == -1) > > + err(1, "unveil"); > > +

Re: snake: unveil + pledge earlier

2019-05-20 Thread Jake Champlin
On Mon, May 20, 2019 at 10:37:47AM -0400, Ted Unangst wrote: > Jake Champlin wrote: > > - readscores(1); > > penalty = loot = 0; > > initscr(); > > + if (unveil(scorepath, "rwc") == -1) > > + err(1, "unveil"); > > +#ifdef LOGGING > > + if (unveil(logpath, "rwc") == -1) > >

Re: snake: unveil + pledge earlier

2019-05-20 Thread Ted Unangst
Jake Champlin wrote: > - readscores(1); > penalty = loot = 0; > initscr(); > + if (unveil(scorepath, "rwc") == -1) > + err(1, "unveil"); > +#ifdef LOGGING > + if (unveil(logpath, "rwc") == -1) > + err(1, "unveil"); > + logfile = fopen(logpath,

Re: snake: unveil + pledge earlier

2019-05-20 Thread Jake Champlin
On Sun, May 19, 2019 at 03:50:39PM -0400, jake wrote: > Unveils snake and pledges earlier during execution. > > Index: snake.c > === > RCS file: /cvs/src/games/snake/snake.c,v > retrieving revision 1.33 > diff -u -p -r1.33 snake.c >

snake: unveil + pledge earlier

2019-05-19 Thread jake
Unveils snake and pledges earlier during execution. Index: snake.c === RCS file: /cvs/src/games/snake/snake.c,v retrieving revision 1.33 diff -u -p -r1.33 snake.c --- snake.c 20 Jan 2019 04:14:19 - 1.33 +++ snake.c