[Bug 2126909] [NEW] ln: 'buffer.h' and 'libowfat/buffer.h' are the same file

Julian Andres Klode 2126909 at bugs.launchpad.net
Mon Oct 6 07:24:19 UTC 2025


Public bug reported:

Easier reproducer:

$ mdkir dir
$ touch file
$ ln file dir
$ ln -f file dir

Gives error:
ln: 'file' and 'dir/file' are the same file

But should not notice, as -f unlinks files first.

** Affects: coreutils
     Importance: Unknown
         Status: Unknown

** Affects: libowfat (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: rust-coreutils (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

  Easier reproducer:
  
  $ mdkir dir
  $ touch file
  $ ln file dir
  $ ln -f file dir
  
  Gives error:
- ln: 'README.md' and 'd/README.md' are the same file
+ ln: 'file' and 'dir/file' are the same file
  
  But should not notice, as -f unlinks files first.

** Bug watch added: github.com/uutils/coreutils/issues #8830
   https://github.com/uutils/coreutils/issues/8830

** Also affects: coreutils via
   https://github.com/uutils/coreutils/issues/8830
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2126909

Title:
  ln: 'buffer.h' and 'libowfat/buffer.h' are the same file

Status in coreutils:
  Unknown
Status in libowfat package in Ubuntu:
  New
Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  Easier reproducer:

  $ mdkir dir
  $ touch file
  $ ln file dir
  $ ln -f file dir

  Gives error:
  ln: 'file' and 'dir/file' are the same file

  But should not notice, as -f unlinks files first.

To manage notifications about this bug go to:
https://bugs.launchpad.net/coreutils/+bug/2126909/+subscriptions




More information about the foundations-bugs mailing list