id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4558	Impossible to add an executable file to a 7z & zip archive (part of a bigger problem)	ponko		"I have a 7z archive: '''/run/shm/1.7z'''. I open it in the left panel, open '''/bin''' in the other panel and copy '''base64''' to the archive. The file gets added to the archive, but as a regular file, NOT as an executable one.

The evident problem is such command used in the '''u7z''' extfs script to add the file:

{{{
7z a -si""$2"" ""$1"" <""$3"" >/dev/null 2>&1
}}}

This command takes file data from stdin and, evidently, information about file permissions/mtime is lost.

But there is one more problem. On copying the file into the archive, u7z gets such args:

{{{
copyin /run/shm/1.7z base64 /tmp/user/1000/mc-user/extfsOVJKQ2base64
}}}

The temp file has perms 600 and is touched with the current time. So, no matter if u7z feeds 7z from stdin or not, there is no way for it to see the original file perms and mtime.

I think, when the extfs (or vfs?) core creates a temp file to feed it to the copyin action, the temp file should have the same perms and mtime as the original."	defect	new	major	Future Releases	mc-vfs	master						no branch	
