logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

ls-strcmp.patch (522B)


  1. SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  3. SPDX-License-Identifier: GPL-2.0-or-later
  4. strcoll() does not exist in mes libc, change it to strcmp.
  5. --- coreutils-5.0/src/ls.c
  6. +++ coreutils-5.0/src/ls.c
  7. @@ -2597,7 +2597,7 @@ xstrcoll (char const *a, char const *b)
  8. {
  9. int diff;
  10. errno = 0;
  11. - diff = strcoll (a, b);
  12. + diff = strcmp (a, b);
  13. if (errno)
  14. {
  15. error (0, errno, _("cannot compare file names %s and %s"),