summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--openbsd-compat/glob.c12
2 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index abafe4a23..e0b6f9630 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,6 +77,9 @@
77 [regress/sftp-glob.sh regress/test-exec.sh] 77 [regress/sftp-glob.sh regress/test-exec.sh]
78 remove "echo -E" crap that I added in last commit and use printf(1) for 78 remove "echo -E" crap that I added in last commit and use printf(1) for
79 cases where we strictly require echo not to reprocess escape characters. 79 cases where we strictly require echo not to reprocess escape characters.
80 - deraadt@cvs.openbsd.org 2005/11/28 17:50:12
81 [openbsd-compat/glob.c]
82 unused arg in internal static API
80 - (djm) [regress/sftp-cmds.sh] 83 - (djm) [regress/sftp-cmds.sh]
81 Use more restrictive glob to pick up test files from /bin - some platforms 84 Use more restrictive glob to pick up test files from /bin - some platforms
82 ship broken symlinks there which could spoil the test. 85 ship broken symlinks there which could spoil the test.
@@ -3351,4 +3354,4 @@
3351 OpenServer 6 and add osr5bigcrypt support so when someone migrates 3354 OpenServer 6 and add osr5bigcrypt support so when someone migrates
3352 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 3355 passwords between UnixWare and OpenServer they will still work. OK dtucker@
3353 3356
3354$Id: ChangeLog,v 1.4778 2007/10/26 05:37:50 djm Exp $ 3357$Id: ChangeLog,v 1.4779 2007/10/26 06:13:39 djm Exp $
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
index b3dd2b171..6489ea936 100644
--- a/openbsd-compat/glob.c
+++ b/openbsd-compat/glob.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: glob.c,v 1.25 2005/08/08 08:05:34 espie Exp $ */ 1/* $OpenBSD: glob.c,v 1.26 2005/11/28 17:50:12 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 1989, 1993 3 * Copyright (c) 1989, 1993
4 * The Regents of the University of California. All rights reserved. 4 * The Regents of the University of California. All rights reserved.
@@ -149,7 +149,7 @@ static int glob0(const Char *, glob_t *);
149static int glob1(Char *, Char *, glob_t *, size_t *); 149static int glob1(Char *, Char *, glob_t *, size_t *);
150static int glob2(Char *, Char *, Char *, Char *, Char *, Char *, 150static int glob2(Char *, Char *, Char *, Char *, Char *, Char *,
151 glob_t *, size_t *); 151 glob_t *, size_t *);
152static int glob3(Char *, Char *, Char *, Char *, Char *, Char *, 152static int glob3(Char *, Char *, Char *, Char *, Char *,
153 Char *, Char *, glob_t *, size_t *); 153 Char *, Char *, glob_t *, size_t *);
154static int globextend(const Char *, glob_t *, size_t *); 154static int globextend(const Char *, glob_t *, size_t *);
155static const Char * 155static const Char *
@@ -571,16 +571,16 @@ glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
571 } else 571 } else
572 /* Need expansion, recurse. */ 572 /* Need expansion, recurse. */
573 return(glob3(pathbuf, pathbuf_last, pathend, 573 return(glob3(pathbuf, pathbuf_last, pathend,
574 pathend_last, pattern, pattern_last, 574 pathend_last, pattern, p, pattern_last,
575 p, pattern_last, pglob, limitp)); 575 pglob, limitp));
576 } 576 }
577 /* NOTREACHED */ 577 /* NOTREACHED */
578} 578}
579 579
580static int 580static int
581glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, 581glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
582 Char *pattern, Char *pattern_last, Char *restpattern, 582 Char *pattern, Char *restpattern, Char *restpattern_last, glob_t *pglob,
583 Char *restpattern_last, glob_t *pglob, size_t *limitp) 583 size_t *limitp)
584{ 584{
585 struct dirent *dp; 585 struct dirent *dp;
586 DIR *dirp; 586 DIR *dirp;