homebrew-core icon indicating copy to clipboard operation
homebrew-core copied to clipboard

Bug in util-linux 2.40.1 rename causes data loss

Open glensc opened this issue 3 weeks ago • 1 comments

There's this bug:

  • https://github.com/util-linux/util-linux/issues/3071

Seems to be macOS specific, but it can cause data loss because multiple files are renamed to same filename.

Will homebrew-core accept patch reverting the breaking commit?

  • https://github.com/util-linux/util-linux/commit/7b67193a53209907f84a6253dcf3aceaf2eb8da1

Verification

  • [ ] My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • [X] I ran brew update and am still able to reproduce my issue.
  • [ ] I have resolved all warnings from brew doctor and that did not fix my problem.
  • [X] I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

Trying to prevent data loss for other users.

It's unclear how fast upstream will respond especially as macOS is not their intended use.

What happened (include all command output)?

I lost some files

What did you expect to happen?

NOT to lose files.

Step-by-step reproduction instructions (by running brew commands)

brew install util-linux
touch test_0{1,2,3,4,5}.htm
rename -v .htm .html *.htm
test -e test_01.html
test ! -e .html

glensc avatar Jun 27 '24 11:06 glensc