From 747ef2ff5990aad0f7fb095ee813350931051431 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 14 Jun 2006 15:17:55 +0000 Subject: i mixed up the offset and whence variables for lseek(2) --- usr.bin/cvs/update.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/update.c') diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c index 44826460bd3..168f10dc20e 100644 --- a/usr.bin/cvs/update.c +++ b/usr.bin/cvs/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.72 2006/06/14 14:10:50 joris Exp $ */ +/* $OpenBSD: update.c,v 1.73 2006/06/14 15:17:54 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -183,7 +183,7 @@ cvs_update_leavedir(struct cvs_file *cf) isempty = 1; buf = xmalloc(bufsize); - if (lseek(cf->fd, SEEK_SET, 0) == -1) + if (lseek(cf->fd, 0, SEEK_SET) == -1) fatal("cvs_update_leavedir: %s", strerror(errno)); while ((nbytes = getdirentries(cf->fd, buf, bufsize, &base)) > 0) { -- cgit v1.2.3