Skip to content

Empty files are not patchable  #35

Description

@mohamed-omara39

How can I patch an empty file ? when I use the library to patch a file that is empty in both ways . I am using patch-ng 1.18.0 . is this version fixed in a newer version ?

Activity

  1. uilianries commented on Oct 1, 2025

    @uilianries
    Member

    @mohamed-omara39 Hello, and sorry for the silence. I'm not sure about that scenario.

    As far as I tested, patch-ng can patch an empty file /dev/null by adding a new file.

    Could you please elaborate on what steps were followed to reach your scenario? Please add more details about your context. Regards!

  2. added a commit that references this issue on Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions