diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-09-17 16:57:23 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-09-17 16:57:23 +0000 |
commit | 8d22d9f738c3ea8832971e76ebf28f5adc91b422 (patch) | |
tree | 79df5cb6a953afd92890ad95fc2e8858d9bce48c /sbin/nmeaattach/nmeaattach.c | |
parent | fd3ae7122314cd6838c99fa737e488a60f5fcb99 (diff) |
correct mode for open().
Diffstat (limited to 'sbin/nmeaattach/nmeaattach.c')
-rw-r--r-- | sbin/nmeaattach/nmeaattach.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/nmeaattach/nmeaattach.c b/sbin/nmeaattach/nmeaattach.c index c83e86f4408..0a443b2fe89 100644 --- a/sbin/nmeaattach/nmeaattach.c +++ b/sbin/nmeaattach/nmeaattach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nmeaattach.c,v 1.2 2006/07/09 09:03:19 jmc Exp $ */ +/* $OpenBSD: nmeaattach.c,v 1.3 2006/09/17 16:57:22 mbalmer Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -134,7 +134,7 @@ main(int argc, char *argv[]) "%s%s", _PATH_DEV, dev); dev = devicename; } - if ((fd = open(dev, O_RDWR | O_NDELAY)) < 0) + if ((fd = open(dev, O_RDWR)) < 0) err(1, "open: %s", dev); tty.c_cflag = CREAD | CS8 | cflag; |