From 3f3251d07e727cddd979d347f8fb323a4143d3ec Mon Sep 17 00:00:00 2001 From: millert Date: Thu, 28 Oct 2010 15:02:41 +0000 Subject: Change basep parameter of getdirentries() to be off_t *, not long * so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@ --- usr.bin/diff/diffdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/diff/diffdir.c') diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c index 5105fbad96a..d9ed703ae7e 100644 --- a/usr.bin/diff/diffdir.c +++ b/usr.bin/diff/diffdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffdir.c,v 1.37 2010/07/17 00:00:32 ray Exp $ */ +/* $OpenBSD: diffdir.c,v 1.38 2010/10/28 15:02:41 millert Exp $ */ /* * Copyright (c) 2003 Todd C. Miller @@ -167,7 +167,7 @@ slurpdir(char *path, char **bufp, int enoentok) { char *buf, *ebuf, *cp; size_t bufsize, have, need; - long base; + off_t base; int fd, nbytes, entries; struct stat sb; struct dirent **dirlist, *dp; -- cgit v1.2.3-59-g8ed1b