openbsd-ports/sysutils/rtty/patches/patch-ttysrv_c
millert 28ef82dd9f Update port to rtty-4.0.shar.gz with patches fed back to Vixie.
Make default group dialer, not wheel, to match default OpenBSD
device permissions.
2002-05-08 18:42:10 +00:00

21 lines
554 B
Plaintext

$OpenBSD: patch-ttysrv_c,v 1.2 2002/05/08 18:42:10 millert Exp $
--- ttysrv.c.orig Wed May 8 12:30:37 2002
+++ ttysrv.c Wed May 8 12:30:37 2002
@@ -136,13 +136,13 @@ static int set_baud(int),
int
main(int argc, char *argv[]) {
- int i;
- char ch, *msg;
+ int ch, i;
+ char *msg;
gethostname(Hostname, sizeof Hostname);
ProgName = argv[0];
- while ((ch = getopt(argc, argv, "o:s:r:t:l:b:p:w:x:i:")) != EOF) {
+ while ((ch = getopt(argc, argv, "o:s:r:t:l:b:p:w:x:i:")) != -1) {
switch (ch) {
case 'o':
msg = handle_option(optarg);