[Pkg-mc-devel] Bug#466370: still buggy

Riccardo Stagni unriccio at email.it
Sun Mar 2 16:00:07 UTC 2008


reopen 466370
found 466370 1:4.6.2~pre1-5
thanks

It's still there! :(

I found with diff some changes between 4.6.1 and 4.6.2-pre1 sources that
could be the cause of this bug: in mc-4.6.2~pre1/src/ChangeLog there is
---
  2007-02-22  Pavel Tsekov  <ptsekov at gmx.net>
    * file.c (copy_file_file): chmod() the target file no matter whether
    "preserve attributes" is checked or not, since the destination is
    initially created with mode 0600.
---

Changing src/file.c:793 to

  if (!appending && ctx->preserve) {

seemed to solve the problem, but only when copying: moving a file with the
executable bit and "preserve attributes" unchecked still create it +x.

ciao
Riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mc-devel/attachments/20080302/a43c5e4b/attachment.pgp 


More information about the Pkg-mc-devel mailing list