summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-10-11 20:57:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-10-11 20:57:00 +0000
commitfb8945272ab74262bb6cddec304a5bf73a7557e4 (patch)
treece24642f44337101e647079b4955deb631315a3a /sys/lib
parent95897a3a325dd246d5732135e1cbc5ddd0dd68bf (diff)
use SEEK_SET; chl@tuxfamily.org
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/readdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/readdir.c b/sys/lib/libsa/readdir.c
index cd2ccb50bba..fe925047fc7 100644
--- a/sys/lib/libsa/readdir.c
+++ b/sys/lib/libsa/readdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readdir.c,v 1.7 2003/08/11 06:23:09 deraadt Exp $ */
+/* $OpenBSD: readdir.c,v 1.8 2006/10/11 20:56:59 deraadt Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -57,7 +57,7 @@ opendir(char *name)
olseek(fd, 0, 0);
#else
if ((fd = open(name, O_RDONLY)) >= 0)
- lseek(fd, 0, 0);
+ lseek(fd, 0, SEEK_SET);
#endif
return fd;