← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2112552] Re: cat doesn't handle EPERM

 

This bug was fixed in the package rust-coreutils -
0.1.0+git20250711.2ba3a33-0ubuntu1

---------------
rust-coreutils (0.1.0+git20250711.2ba3a33-0ubuntu1) questing; urgency=medium

  * New upstream git commit 0.1.0+git20250711.2ba3a33
    - Fix  'od' invalid handling of non ascii chars (LP: #2114827)
    - Fix `cp -a` fails to copy symlink to directory (LP: #2116859)
    - Fix dpkg-source fails to unpack broken symlink (LP: #2116886)
    - Fix Incorrect evaluation of expr (LP: #2112445)
    - Fix cat doesn't handle EPERM (LP: #2112552)
    - Fix  /bin/stty: invalid argument 'sane' (LP: #2113983)
    - Fix tee is buffered (LP: #2114706)
    - Fix rm of long paths (LP: #2114886)
    - Fix ls doesn't include acl "+" info on symlink (LP: #2114887)
    - Fix fold: failed to read line: stream did not contain valid UTF-8
      (LP: #2114970)
    - Fix  gpgrt-config invalid output due to rust-coreutils "expr"
      (LP: #2115147)
    - Fix `cp --no-dereference --parents` where source is a symlink to
      a directory (LP: #2116572)
    - Internationalization and French translations for a lot of stuff
  * Install locales
  * d/patches/Setup-localization-for-utility-symlinks.patch: Setup the
    localization when invoked via symlinks

 -- Julian Andres Klode <juliank@xxxxxxxxxx>  Mon, 21 Jul 2025 12:48:46
+0200

** Changed in: rust-coreutils (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/2112552

Title:
  cat doesn't handle EPERM

Status in coreutils-from package in Ubuntu:
  Incomplete
Status in rust-coreutils package in Ubuntu:
  Fix Released
Status in util-linux package in Ubuntu:
  Fix Released

Bug description:
  This was found while investigating FTBFS in util-linux
  (https://launchpadlibrarian.net/797485933/buildlog_ubuntu-questing-
  amd64.util-linux_2.41-4ubuntu1_BUILDING.txt.gz).

  This is triggered by this test: tests/ts/lsfd/mkfds-multiplexing
  This test was skipped with GNU coreutils, because at some point, `cat` fails (with reason) to read a file: https://github.com/util-linux/util-linux/blob/35128888075ade600413092214b62acf3601ead9/tests/ts/lsfd/mkfds-multiplexing#L49-L55
  With uutils coreutils, the test is not skipped, but fails for unclear reasons.

  It boils down to this very easy reproducer: cat /proc/$$/syscall

  GNU coreutils output:
  skia@noble:/$ cat /proc/$$/syscall
  cat: /proc/208/syscall: Operation not permitted
  skia@noble:/$ echo $?
  1

  uutils coreutils output:
  skia@questing:/$ cat /proc/$$/syscall
  skia@questing:/$ echo $?
  0

  `strace cat /proc/$$/syscall` clearly shows that `read()` return EPERM with both binaries:
  ...
  read(3, 0x7ffd4ef80798, 65536)          = -1 EPERM (Operation not permitted)
  ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2112552/+subscriptions