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

Set local file copy stat data #3650

Open
mc-butler opened this issue May 31, 2016 · 5 comments
Open

Set local file copy stat data #3650

mc-butler opened this issue May 31, 2016 · 5 comments
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3650
Reporter Nicolas Rybkin (mfkorenev@….ru)

When MC copies a file into some EXTFS it uses a local copy of source file and gives a path to this copy to EXTFS scripit. But it doesn't set stat info of this local file, so EXTFS script has no chance to get stat info of true source.
I've fixed this problem, now MC performs chown(), chmod() and utime() on local copy. Struct definitions from src/vfs/extfs/extfs.c were moved to extfs.h, src/filemanager/file.c now includes extfs.h.

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by Nicolas Rybkin (mfkorenev@….ru) on May 31, 2016 at 16:58 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 31, 2016 at 17:22 UTC (comment 1)

  • Component changed from mc-core to mc-vfs

@mc-butler
Copy link
Author

Changed by Nicolas Rybkin (mfkorenev@….ru) on May 31, 2016 at 17:49 UTC (comment 3)

#include <utime.h> in file.c is unnecessary.

@mc-butler
Copy link
Author

Changed by Nicolas Rybkin (mfkorenev@….ru) on May 31, 2016 at 17:56 UTC (comment 4)

sorry for real tabz

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jan 3, 2019 at 13:15 UTC (comment 5)

Ticket #3951 has been marked as a duplicate of this ticket.

@mc-butler mc-butler marked this as a duplicate of #3951 Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress
Development

No branches or pull requests

1 participant