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

[ISSUE]: Strange bug with put command and txt file #41

Open
1 task done
GDX-X opened this issue May 28, 2022 · 3 comments
Open
1 task done

[ISSUE]: Strange bug with put command and txt file #41

GDX-X opened this issue May 28, 2022 · 3 comments
Labels

Comments

@GDX-X
Copy link

GDX-X commented May 28, 2022

Checks

  • I have checked existing issues for duplicates and found none

Describe the issue

I found a strange bug on pfsshell (present on all versions)

the steps to take to reproduce the bug

  1. Create a txt file

  2. write hdd_partition=__common

  3. put it on hard drive

  4. Edit the txt file and replace __common with +OPL

  5. put it on hard drive

  6. recover file from hard drive

who will give
hdd_partition=+OPLmmon

I also tried deleting the file before copying it, it does the same thing.

https://www.youtube.com/watch?v=CytM9ilctwQ

Console model

X

@GDX-X GDX-X added the bug label May 28, 2022
@uyjulian
Copy link
Member

Note to self: ftruncate?

@uyjulian
Copy link
Member

Due to the fact that truncate is not implemented, this will require a large rework of the code to support properly.

For now, save the changes to a new file instead of doing in-place changes.

@GDX-X
Copy link
Author

GDX-X commented Aug 16, 2022

Yeah, but it's not too disturbing. because the file will be replaced in any case as long as it works it is not urgent. the solution is simply to quit pfshell and restart it to have the complete file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants