Sort FTS_NS entries by name, just so the order is well-defined.
This commit is contained in:
parent
401810260a
commit
00e5d89a69
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ls.c,v 1.17 1996/07/08 10:20:16 mycroft Exp $ */
|
||||
/* $NetBSD: ls.c,v 1.18 1996/07/09 09:16:29 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
@ -46,7 +46,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)ls.c 8.7 (Berkeley) 8/5/94";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: ls.c,v 1.17 1996/07/08 10:20:16 mycroft Exp $";
|
||||
static char rcsid[] = "$NetBSD: ls.c,v 1.18 1996/07/09 09:16:29 mycroft Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -543,7 +543,7 @@ mastercmp(a, b)
|
||||
else if (a_info != FTS_NS)
|
||||
return (-1);
|
||||
else
|
||||
return (0);
|
||||
return (namecmp(*a, *b));
|
||||
|
||||
if (a_info == b_info)
|
||||
return (sortfcn(*a, *b));
|
||||
|
Loading…
Reference in New Issue
Block a user