Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.tar don't overwrite files on unpack #19081

Merged
merged 5 commits into from
Feb 26, 2024

Commits on Feb 24, 2024

  1. std.tar don't overwrite existing file

    Fail with error if file already exists. File is not silently overwritten
    but an error is raised.
    
    Fixes: ziglang#18089
    ianic committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    b84301c View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2024

  1. std.tar add case sensitive file name test

    Like in issue ziglang#18089, this tar contains, same file name in two case
    sensitive name version. Unpack should fail on case insensitive file
    systems and succeed on case sensitive.
    
    $ tar tvf 18089.tar
        18089/
        18089/alacritty/
        18089/alacritty/darkermatrix.yml
        18089/alacritty/Darkermatrix.yml
    ianic committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    96e4d56 View commit details
    Browse the repository at this point in the history
  2. std.tar improve error reporting

    Report file name which failed to create in all cases.
    ianic committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    30a319b View commit details
    Browse the repository at this point in the history
  3. std.tar skip test on windows

    Or other platform which don't support symlinks.
    ianic committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    f086ea8 View commit details
    Browse the repository at this point in the history
  4. std.tar fix refactored function

    It was not returning error in all cases. Bug in refactoring.
    ianic committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    65e5c46 View commit details
    Browse the repository at this point in the history