coreutils: Fix build of ls

This commit is contained in:
Paul Dersey 2021-01-22 16:41:47 -05:00
parent 7c90d5bf4c
commit fef663a46b
3 changed files with 14 additions and 2 deletions

View File

@ -18,6 +18,7 @@ catm config.h
patch -Np0 -i ../../patches/modechange.patch
patch -Np0 -i ../../patches/mbstate.patch
patch -Np0 -i ../../patches/ls-strcmp.patch
# Build and install
/after/bin/make -f Makefile

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,11 @@
--- src/ls.c
+++ src/ls.c
@@ -2597,7 +2597,7 @@ xstrcoll (char const *a, char const *b)
{
int diff;
errno = 0;
- diff = strcoll (a, b);
+ diff = strcmp (a, b);
if (errno)
{
error (0, errno, _("cannot compare file names %s and %s"),