diff options
author | deraadt <deraadt@openbsd.org> | 2006-10-11 20:56:59 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2006-10-11 20:56:59 +0000 |
commit | 29a36e40485802535755fcc8c81110629c35622b (patch) | |
tree | 00848fdae448a8bf9af7788b72169c75b31edcc6 /usr.sbin/mopd | |
parent | Oops, wrong size in struct cfattach. (diff) | |
download | wireguard-openbsd-29a36e40485802535755fcc8c81110629c35622b.tar.xz wireguard-openbsd-29a36e40485802535755fcc8c81110629c35622b.zip |
use SEEK_SET; chl@tuxfamily.org
Diffstat (limited to 'usr.sbin/mopd')
-rw-r--r-- | usr.sbin/mopd/common/loop-bsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mopd/common/loop-bsd.c b/usr.sbin/mopd/common/loop-bsd.c index fbd8101ad52..303cd15da11 100644 --- a/usr.sbin/mopd/common/loop-bsd.c +++ b/usr.sbin/mopd/common/loop-bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loop-bsd.c,v 1.11 2006/04/17 16:23:01 deraadt Exp $ */ +/* $OpenBSD: loop-bsd.c,v 1.12 2006/10/11 20:56:59 deraadt Exp $ */ /* * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$OpenBSD: loop-bsd.c,v 1.11 2006/04/17 16:23:01 deraadt Exp $"; + "$OpenBSD: loop-bsd.c,v 1.12 2006/10/11 20:56:59 deraadt Exp $"; #endif #include <errno.h> @@ -142,7 +142,7 @@ again: if (cc < 0) { if (errno == EINVAL && (lseek(ii->fd, 0, SEEK_CUR) + bufsize) < 0) { - lseek(ii->fd, 0, 0); + lseek(ii->fd, 0, SEEK_SET); goto again; } syslog(LOG_ERR, "read: %m"); |