Skip to content

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

Open
can1357 wants to merge 1 commit intouutils:mainfrom
can1357:sync-fall-back-to-full-sync-when-file-system-has-no-operands
Open

sync: fall back to full sync when --file-system has no operands#11393
can1357 wants to merge 1 commit intouutils:mainfrom
can1357:sync-fall-back-to-full-sync-when-file-system-has-no-operands

Conversation

@can1357
Copy link
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

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant