1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

1379 Commits

Author SHA1 Message Date
deraadt
296f1046f1 further fixes from pjanzen@foatdi.harvard.edu 1998-02-14 20:40:37 +00:00
ryker
0e001692b1 s/optsifle/optsfile/ 1998-02-09 16:18:28 +00:00
deraadt
6d5bb74f57 cleanup; pjanzen@foatdi.harvard.edu 1998-02-08 18:59:56 +00:00
deraadt
40c957bff5 tweaks and cleanup; pjanzen@foatdi.harvard.edu 1998-01-31 19:20:22 +00:00
angelos
3565abd965 Fix annoying warnings. 1997-12-16 07:54:21 +00:00
deraadt
8101706a8b avoid fclose(NULL) 1997-12-08 03:53:45 +00:00
kstailey
aae7af4b51 cleanup 1997-11-18 21:35:10 +00:00
kstailey
531e8bdcb9 strong random 1997-11-18 21:31:50 +00:00
kstailey
7efb45c7b0 use arc4random 1997-10-01 19:06:30 +00:00
deraadt
e189ddde44 $OpenBSD$ 1997-09-21 11:34:32 +00:00
deraadt
b722ed3e1c vfork paranoia 1997-09-11 22:55:50 +00:00
angelos
87a26f21ff The /var/games/phantasia/* files should be root.games 1997-09-02 15:47:07 +00:00
millert
afbb2cc926 Don't try to write to a NULL file pointer whne updating high score list
(happens if scores file is not writable).
1997-09-01 19:30:55 +00:00
millert
f5c9873f62 Remove trailing spaces on lines, use sane pathname sizes, and
use warn instead of perror.
1997-09-01 18:13:08 +00:00
deraadt
dc98058a3c fix man; noted by hubert.feyrer@rz.uni-regensburg.de 1997-08-31 22:22:35 +00:00
deraadt
d46c7b1f15 fix ' use 1997-08-27 18:01:06 +00:00
deraadt
49d23a04d4 various linux-based patches; from linux people; sent by jsm@octomino.demon.co.uk 1997-08-24 21:55:01 +00:00
kstailey
de7d2718c7 bc -> le 1997-08-19 02:54:40 +00:00
kstailey
b1ab2c6624 bc is now le, don't ask me why 1997-08-19 02:44:40 +00:00
kstailey
4e007cc25a bc is now le, don't ask me why 1997-08-19 02:37:50 +00:00
deraadt
a00ba56d10 pull errno.h in 1997-08-05 05:34:36 +00:00
deraadt
6dccf94ecd save errno in sigchld handlers 1997-08-04 19:24:02 +00:00
downsj
6a13adad4c And another. 1997-08-04 11:51:29 +00:00
downsj
647ed23fe9 Heh. 1997-08-04 11:32:38 +00:00
downsj
b9840a1d6c And another. 1997-08-04 11:28:43 +00:00
downsj
01be090c10 And another one bites the dust. 1997-08-04 11:11:39 +00:00
deraadt
dab4e21eb3 initscr failure returns NULL 1997-07-31 19:36:26 +00:00
deraadt
6067bf8f52 proto malloc 1997-07-31 19:27:19 +00:00
deraadt
96e884d0f7 time_t 1997-07-31 19:23:46 +00:00
deraadt
b7cf17dca3 time_t not long 1997-07-31 19:18:26 +00:00
deraadt
917645068b time_t is not long 1997-07-31 19:09:34 +00:00
mickey
0115a535e1 #if __STDC__ --> #ifdef __STDC__ 1997-07-25 19:34:05 +00:00
deraadt
98bcabe8c9 Clean up play, let player see play more often, improve display timing.
Preliminary work from PR 2055 (as reverse patches); phil
1997-07-24 15:08:21 +00:00
kstailey
260eaa9fb4 tabify 1997-07-23 20:04:39 +00:00
deraadt
fcfb60ffc5 fix Xr 1997-07-17 08:44:43 +00:00
deraadt
6fb200d406 gtime var -> gltime var 1997-07-15 10:21:45 +00:00
deraadt
0963461307 fixes; netbsd 1997-07-08 09:32:35 +00:00
mickey
8e1182cf92 <time.h> 1997-07-05 23:22:17 +00:00
kstailey
238a943f45 tag 1997-06-30 19:56:27 +00:00
kstailey
7dd88c0f77 fix highscore 1997-06-30 19:50:13 +00:00
kstailey
5dd2d5301e use uname(3) not gethostname(3); removes some SYSV conditional code 1997-06-18 19:03:06 +00:00
kstailey
f83b51053b fix highscore file 1997-06-18 18:32:43 +00:00
kstailey
735a31234c kstailey@cvs(2)$ atc
/usr/share/games/atc/Game_List: Permission denied
(fixed)
1997-06-18 16:43:46 +00:00
deraadt
4a54d79951 .Xr 1997-06-11 23:33:37 +00:00
deraadt
8cb8c7621a heh; mph@pobox.com 1997-06-02 08:16:10 +00:00
deraadt
26d98fa439 xref corrections 1997-05-30 09:12:49 +00:00
deraadt
7539203b3b for i in `find . -name \*.[123456789] -exec grep '^.Dd ' {} /dev/null \; | \
grep '"' | cut -d':' -f1`; do
sed -e '/^.Dd /s/"//g' -e '/^.Dd /s/\(^.Dd [A-Za-z]*\) \(.*\)$/\1, \2/' <$i >x
cat x > $i
done
1997-05-30 07:47:50 +00:00
millert
9c44650ee5 COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIP
This fixes namespace problems where STRIP is sometimes used as
the name of the strip(1) to use and other times used as
the flag to send install(1) when stripping (or not).
COPY doesn't have this problem (yet) but was poorly named.
1997-04-27 20:55:40 +00:00
gene
e6e48d749b We have a visual report with high confidence that Joshua's words actually
were:
A STRANGE GAME.
THE ONLY WINNING MOVE IS NOT TO PLAY.
(but, nobody likes all caps anyway)
1997-04-19 06:02:55 +00:00
kstailey
8cfa6c45e5 their is -> there is 1997-04-10 11:37:47 +00:00
deraadt
41a8198549 the the 1997-04-09 01:59:00 +00:00
mickey
5ddb40453e depend on DPADD, not only one lib 1997-04-01 19:54:26 +00:00
rahnds
cf2fcc31c8 Changes from NetBSD to compile games without warnings due to short being
unsigned on some archs, PowerPC, ROMP.
1997-04-01 16:00:52 +00:00
tholo
a7a85d61af Set umask so save files are writeable by hack 1997-03-28 18:56:20 +00:00
tholo
d71d731e24 Log and score file needs to be group writeable 1997-03-28 18:51:47 +00:00
downsj
e97b7ed338 phantasia.6 -> phantasia.6tbl 1997-02-28 10:18:41 +00:00
niklas
f7d92492fd Use standard header files instead of declaring system funcs explicitly 1997-02-14 10:28:17 +00:00
deraadt
06f1ba87d9 CC=${HOSTCC} for these; tv@slack.iag.net, PR#86 1997-02-09 13:52:40 +00:00
deraadt
bdcd13e050 CC=${HOSTCC} for these; tv@slack.iag.net, PR#89 1997-02-09 13:51:24 +00:00
kstailey
c6ebfc57c5 add tags to changed files 1997-02-05 18:28:35 +00:00
kstailey
5f463f5740 fix highscore without breaking security 1997-02-05 18:26:07 +00:00
deraadt
b8557ef829 buf oflow, felix@mamba.pond.sub.org 1997-01-30 21:55:27 +00:00
millert
408bb4f53f Fallout from signal.h's inclusion of sys/time.h... 1997-01-27 07:32:33 +00:00
downsj
74471cb56c Check malloc() return value. 1997-01-26 08:00:52 +00:00
deraadt
54c4722bd3 documentation errors; from max@freebsd 1997-01-23 20:01:41 +00:00
millert
de0815e06e more r?index -> strr?chr changes 1997-01-17 07:51:41 +00:00
millert
d734527c68 no need to link with -lcompat 1997-01-17 07:51:06 +00:00
millert
dbd11d1e77 nuke rindex decl 1997-01-17 07:49:22 +00:00
millert
180acc8f08 r?index -> strr?chr 1997-01-17 07:10:42 +00:00
millert
72799b18e5 getopt(3) returns -1 when out of args, not EOF, whee! 1997-01-15 23:40:20 +00:00
niklas
3486df8b7a Fix PR#2 in a simplistic way. Handle EOF on all getchar()s 1997-01-11 10:01:27 +00:00
etheisen
6c12f5fb1a root NOT games. 1997-01-03 03:03:59 +00:00
rahnds
b02fb5a165 getc returns int not char.
This matters on some ports, such as powerpc. (signed vs unsigned issue).
1997-01-02 02:25:56 +00:00
tholo
d8d8a16515 Fix typo 1996-12-29 23:58:43 +00:00
deraadt
161033a189 proper gid revoke 1996-12-22 20:00:41 +00:00
tholo
d859f7056b Deal correctly with being SGID 1996-12-21 22:06:21 +00:00
tholo
75b7a26749 Relinguish SGID games, restore it only when opening the score file 1996-12-21 21:43:54 +00:00
tholo
40aa9d5f31 Clean up lint and -Wall output 1996-12-21 21:17:49 +00:00
tholo
b2fbc8095c Don't reset group here, we won't be able to execute games that way 1996-12-21 21:11:53 +00:00
downsj
295a019d1b Nevermind, curses problem was caused by a busted lib on threadway. 1996-12-20 00:22:18 +00:00
deraadt
120cb3ac2d gid games 1996-12-19 23:08:50 +00:00
deraadt
893fd100f3 setgid games, not setuid games. closes a neat set of holes 1996-12-19 22:19:48 +00:00
deraadt
f30ed81a6a toast shell escape code 1996-12-19 21:02:35 +00:00
downsj
37ee587b0b add gomoku 1996-12-16 07:02:50 +00:00
downsj
02e921727a Import of gomoku from 4.4BSD Lite2. Uses ocurses. 1996-12-16 06:56:07 +00:00
deraadt
3aa33c149c some cleanup from bde@freebsd 1996-12-14 15:21:26 +00:00
deraadt
59ac8258be typo, jmg@nike.efn.org 1996-12-10 16:04:37 +00:00
deraadt
92623de05d "the the" purge 1996-12-10 09:05:56 +00:00
downsj
a591a1b6e6 install -> ${INSTALL}, -c -> ${COPY} 1996-12-08 15:36:11 +00:00
niklas
b676453d35 Reorder includes for htons et al. 1996-11-25 13:34:22 +00:00
millert
6605bc43bc rindex -> strrchr
add some void casts
safe strcpy
1996-11-25 00:08:03 +00:00
millert
33ad206ce0 Safe $HOME handling. 1996-10-28 00:12:44 +00:00
millert
886e22598d Safe $HOME handling. 1996-10-28 00:07:17 +00:00
millert
f3e8bc01cf Don't make size assumptions wrt $HOME 1996-10-27 23:51:36 +00:00
millert
02dbeb04ba prefer $LOGNAME to $USER. Fix strncpy() usage. 1996-10-26 20:02:56 +00:00
millert
c7b2accb0f prefer $LOGNAME over $USER. fix strncpy() usage. 1996-10-26 19:59:27 +00:00
deraadt
e612da3172 deal with files as euid; based on code by alex@freebsd.org 1996-10-15 09:35:58 +00:00
michaels
cad86ecd9d vital fixes. From Kenneth Stailey (kstailey@dol-esa.gov) 1996-10-14 22:14:37 +00:00
niklas
a4831564e5 clean better 1996-10-12 21:27:50 +00:00
tholo
48a09da338 Store the fortune data files with fixed data types, and document this.
Bump database version to 2.
1996-10-06 03:22:18 +00:00
tholo
6160caa11a Store the card deck using fixed sizes and network byte order 1996-10-06 03:20:44 +00:00
downsj
f3f2f7a1d6 Bug fix from Kenneth Stailey <kstailey@dol-esa.gov>, PR#20. 1996-09-20 01:01:35 +00:00
downsj
c96331cf63 this is a real game, hide it. 1996-08-21 08:27:24 +00:00
downsj
385ee28385 +bs 1996-08-21 08:19:25 +00:00
downsj
7f4826009c battleships, from FreeBSD 1996-08-21 08:18:33 +00:00
downsj
b23da7515f +grdc 1996-08-21 07:59:22 +00:00
downsj
4acc410cbf From FreeBSD. 1996-08-21 07:58:07 +00:00
deraadt
28a51b9461 termcap path; explorer@netbsd.org 1996-08-18 18:48:13 +00:00
downsj
23dccfe411 NetBSD PR#2699: delay revoke of privs until after log file is opened,
and print better diagnostics.  Kenneth Stailey <kstailey@dol-esa.gov>
1996-08-15 01:54:19 +00:00
deraadt
cf32984646 LOCK_UN before close, not after 1996-06-18 11:29:03 +00:00
downsj
b3f83f7663 ncurses: ERR -> NULL 1996-06-16 05:06:56 +00:00
deraadt
0a65da79df security fixes 1996-06-10 04:45:28 +00:00
tholo
15eabdf8fd Update for modern curses implementation 1996-06-02 19:47:04 +00:00
tholo
49980a6d34 Always use -ltermlib when linking with -lcurses
Be comsistent in use of LIBTERMCAP and LIBTERMLIB when depending
1996-06-02 05:47:49 +00:00
tholo
7b3630a478 Always use -ltermlib when linking with -lcurses
Depend on LIBTERMCAP and LIBTERMLIB as appropriate
1996-06-02 05:44:14 +00:00
deraadt
5db21cc01a pull signal.h 1996-05-28 12:39:18 +00:00
fn
db69080045 fixed the "/* in comments" problem. 1996-05-26 07:23:02 +00:00
deraadt
d077aa933e sync 0521 1996-05-26 01:04:36 +00:00
deraadt
01a2f85a8c do make right 1996-04-24 08:13:32 +00:00
deraadt
69a3ff958e sync with netbsd 960418 1996-04-23 03:00:16 +00:00
niklas
86f1648042 From NetBSD: Use tr instead of caesar to generate fortunes-o 1996-03-28 13:51:06 +00:00
niklas
aa50f5df95 Make building with ${HOSTCC} work in obj-dirs 1996-03-09 09:16:46 +00:00
niklas
da34e3c3d4 Rudimentary support for compilation in a cross environment
Host tools will be compiled with HOSTCC instead of CC.
Note, these are not complete in *any* way\!
1996-03-09 01:33:25 +00:00
niklas
e023223753 From netbsd:
Removed "extern int errno"; Added #include <errno.h> if not already present.
1996-02-17 23:54:37 +00:00
etheisen
99c5df51cf Command line arguments were not being handled correctly. Modified for
proper funtionality and for compliance with manpage.
1996-02-14 07:06:41 +00:00
etheisen
44a0153a90 Added check for null pointer while processing cmdline options. Pointer
overrun was causing SEGV if any cmdline options were specified.
1996-02-12 07:42:26 +00:00
deraadt
9614130b9e from netbsd; use sys_signame[] where possible 1995-12-21 14:32:35 +00:00
deraadt
79321df035 from netbsd: fix a few typos 1995-12-14 01:27:27 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00