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

mc compare directories (thorough) thinks empty files are different #350

Closed
mc-butler opened this issue May 11, 2009 · 7 comments
Closed
Assignees
Labels
area: core Issues not related to a specific subsystem prio: low Minor problem or easily worked around ver: 4.6.2 Reproducible in version 4.6.2
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/350
Reporter snizovtsev (@snizovtsev)
Keywords commited-master

https://bugs.launchpad.net/ubuntu/+source/mc/+bug/181034
The bug was caused by mmap behaviour when length = 0. Here is quote from man(3) mmap:

SUSv3 specifies that mmap() should fail if length is 0. However, in kernels before 2.6.12, mmap() succeeded in this case: no mapping was created
and the call returned addr. Since kernel 2.6.12, mmap() fails with the error EINVAL for this case.

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by snizovtsev (@snizovtsev) on May 11, 2009 at 13:53 UTC

@mc-butler
Copy link
Author

Changed by snizovtsev (@snizovtsev) on May 11, 2009 at 16:06 UTC (comment 1)

  • Milestone changed from 4.7 to 4.6.2.1
  • Priority changed from major to trivial

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on May 12, 2009 at 6:48 UTC (comment 2)

  • Owner set to slavazanko
  • Status changed from new to accepted
  • Milestone changed from 4.6.2.1 to 4.7

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on May 12, 2009 at 6:55 UTC (comment 3)

  • Keywords set to review, vote-slavazanko

branch 350_compare_empty_files created(parent: master)

See [8c441fd]

My vote here.

@mc-butler
Copy link
Author

Changed by styx (@styx) on May 13, 2009 at 10:32 UTC (comment 4)

  • Keywords changed from review, vote-slavazanko to vote-slavazanko, vote-styx, approved

@mc-butler
Copy link
Author

Changed by styx (@styx) on May 13, 2009 at 11:34 UTC (comment 5)

  • Status changed from accepted to testing
  • Resolution set to fixed

@mc-butler
Copy link
Author

Changed by styx (@styx) on May 13, 2009 at 11:34 UTC (comment 6)

  • Keywords changed from vote-slavazanko, vote-styx, approved to commited-master
  • Status changed from testing to closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: low Minor problem or easily worked around ver: 4.6.2 Reproducible in version 4.6.2
Development

No branches or pull requests

2 participants