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

savannah: recursive "are same file" #19

Closed
mc-butler opened this issue Dec 25, 2008 · 15 comments
Closed

savannah: recursive "are same file" #19

mc-butler opened this issue Dec 25, 2008 · 15 comments
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress ver: 4.6.1 Reproducible in version 4.6.1
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/19
Reporter ossi (@ossilator)

This patch solve the trouble:
1) in panel select any dir
2) F5 (copy dialog)
3) in field copy to insert "."
4) done

we have error for some file in this subdir and no way leave.

Now show dialog with [ Abort ] [ Skip ] buttons.

Original: http://savannah.gnu.org/bugs/?13727

Submitted by:Oswald Buddenhagen <ossi>Submitted on:Mon 11 Jul 2005 03:34:08 PM UTC
Category:CoreSeverity:3 - Normal
Status:NonePrivacy:Public
Assigned to:NoneOpen/Closed:Open
Release:current (CVS or snapshot)Operating System:All

Original submission:

recently i accidentally entered "." instead of ".." in the file 
copy dialog on a relatively big tree ... for every f***ing file in 
the tree i got the "<foo> and <bar> are the same file" message box, 
without any way to escape except killing mc from the outside. 

Comment 1 by Pavel Tsekov <ptsekov> at Tue 12 Jul 2005 11:56:05 AM UTC:

What do you think should be done in this case ?

1) Silently ignore the fact and continue

2) Pop up a box with several choices

3) Something else

Comment 2 by Oswald Buddenhagen <ossi> at Tue 12 Jul 2005 12:53:06 PM UTC:

well, one could simply do this same-inode check on directories as 
well. this would give exactly the desired effect - one error 
message box (for the top-level directory) and bye bye.

Comment 3 by Pavel Tsekov <ptsekov> at Sat 19 May 2007 01:43:08 PM UTC:

Denis Vlasenko posted a patch which would fix this issue:

http://mail.gnome.org/archives/mc-devel/2007-May/msg00033.html

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Dec 25, 2008 at 12:21 UTC

patch that fix this bug

@mc-butler
Copy link
Author

Changed by winnie (@winnieXY) on Jan 30, 2009 at 13:27 UTC (comment 1)

  • Milestone set to 4.6.3

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 5, 2009 at 9:04 UTC

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 5, 2009 at 9:49 UTC

last version master based

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 5, 2009 at 10:09 UTC (comment 2)

  • Keywords set to review
  • Status changed from new to accepted
  • Description edited
  • Owner set to angel_il

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 5, 2009 at 10:18 UTC (comment 3)

created branch 19_show_abort_skip_for_copy_error; parent branch: master

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 8, 2009 at 11:09 UTC (comment 4)

src/file.c:

  • modified error messages for warn_same_file() function;
  • move_dir_dir(): fixed memory leak: destdir is not free'd when the same directory is copied;
  • move_dir_dir(): don't use the non-valid dbuf variable if mc_stat(d, &dbuf) returns non-zero.

Fixed types of file/dir operation functions.
All po/*po files are updated to sync with modified src/file.c file.

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Mar 12, 2009 at 8:51 UTC (comment 5)

  • Keywords changed from review to review, vote-slavazanko

cool. Looks good. 'Abort' action very useful in this case.
My vote here

@mc-butler
Copy link
Author

Changed by styx (@styx) on Mar 12, 2009 at 9:08 UTC (comment 6)

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

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 17, 2009 at 6:59 UTC (comment 7)

  • Status changed from accepted to assigned

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 17, 2009 at 20:11 UTC (comment 8)

  • Keywords changed from vote-slavazanko, vote-styx, approved to commited-mc-4.6
  • Status changed from assigned to testing
  • Resolution set to fixed

@mc-butler
Copy link
Author

Changed by winnie (@winnieXY) on Mar 20, 2009 at 7:02 UTC (comment 9)

  • Status changed from testing to closed

@mc-butler
Copy link
Author

Changed by mc-butler (@mc-butler) on Jul 31, 2009 at 22:13 UTC

  • Milestone 4.6.2.1 deleted

Milestone 4.6.2.1 deleted

@mc-butler
Copy link
Author

Changed by ossi (@ossilator) on Jan 11, 2014 at 15:43 UTC (comment 11)

  • Branch state set to no branch
  • Reporter changed from slavazanko to ossi
  • Milestone set to Future Releases
  • Description edited

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jan 12, 2014 at 7:20 UTC (comment 12)

  • Milestone changed from Future Releases to 4.6.2
  • Version set to 4.6.1
  • Keywords commited-mc-4.6 deleted
  • Branch state changed from no branch to merged

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 ver: 4.6.1 Reproducible in version 4.6.1
Development

No branches or pull requests

1 participant