Ticket #3135 (new defect)

Opened 10 years ago

Last modified 6 years ago

Copying/moving file to another folder with space in foldername results in error

Reported by: post-factum Owned by:
Priority: minor Milestone: Future Releases
Component: mc-core Version: 4.8.11
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Given the following tree:

mctest
├── folder 1
│   └── file.txt
└── folder 2

(Note that "folder 1" and "folder 2" contain single spaces.)

In mc I enter "folder 1", select file.txt and press F5. Then in copy dialog I enter "../fol" and press Esc+Tab. mc suggests me "../folder\ ". Then I add "2" and press Enter. And the following error appears:

Cannot overwrite directory "../folder 2"

If in copy dialog I enter "../folder 2" (without screening \), everything is OK.

Moving dialog produces the same error.

Note, that in mc command line "cd" command works OK with screening \ before space.

Version info:

GNU Midnight Commander 4.8.11
Built with GLib 2.38.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Change History

comment:1 Changed 10 years ago by post-factum

  • Version changed from master to 4.8.11

comment:2 Changed 10 years ago by egmont

Sounds like the reincarnation of bug #55, perhaps...

comment:3 Changed 10 years ago by andrew_b

Actually, the same as #3008.

comment:4 Changed 6 years ago by andrew_b

Related to #3923.

Note: See TracTickets for help on using tickets.