Skip to content

sync: fall back to full sync when --file-system has no operands#11393

Merged
sylvestre merged 2 commits intouutils:mainfrom
can1357:sync-fall-back-to-full-sync-when-file-system-has-no-operands
Apr 3, 2026
Merged

sync: fall back to full sync when --file-system has no operands#11393
sylvestre merged 2 commits intouutils:mainfrom
can1357:sync-fall-back-to-full-sync-when-file-system-has-no-operands

Conversation

@can1357
Copy link
Copy Markdown
Contributor

@can1357 can1357 commented Mar 18, 2026

uutils sync --file-system with no file operands enters the filesystem-sync path with an empty list and returns success without issuing any sync syscall. GNU treats this mode as a global sync() when no operands are given.

Reproduction Steps

Kind of hard to observe.

Impact

Scripts that rely on sync --file-system success as a durability barrier can proceed without flushing data, risking data loss and GNU incompatibility.

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Congrats! The gnu test tests/seq/seq-epipe is now passing!

@sylvestre sylvestre merged commit 90c7896 into uutils:main Apr 3, 2026
163 checks passed
kevinburkesegment pushed a commit to kevinburkesegment/coreutils that referenced this pull request Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants