Skip to content

ftouch clobbers files #770

Open
Open
@Y-Less

Description

@Y-Less

Describe the bug

The touch utility is meant to merely update a file's modified time, or create it if it doesn't exist, with no changes to the contents. ftouch should do the same, but seems to clobber the file contents. Really a pawn-lang bug.

To Reproduce

new File:f = fopen("moo.txt", io_write);
fwrite(f, "hi");
fclose(f);
ftouch("moo.txt");

Expected behavior

File contents should remain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnightly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions