-
Notifications
You must be signed in to change notification settings - Fork 3
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
[ftpfs] [regression] mc adds spaces at the beginning of some files/dirs on AIX ftp servers #2841
Comments
Can you log in to AIX FTP-server (via console ftp client or via telnet) and provide to us output of 'ls' FTP-command? |
I have already provided output of 'ls' FTP-command in ticket #2635, but since you insist, here it follows:
|
Recently nothing was happening around this bug, so I investigated it a bit and have noticed following relation. The files with additional space in name are ONLY the ones, which have NOT been modified at current day. In such cases the 'hh:mm' part of modification date is replaced by 'YYYY ' followed by additional space. |
|
Again I have taken deeper look into this bug and might have found cause for this problem. If you take a look at remotes/origin/master/lib/vfs/parse_ls_vga.c at line 806:
I would change this line to:
I have created local git branch, tracking the master, but frankly speaking I am afraid to break something with mc's repository. Could someone give me a hint what to do next to push my local branch for others to test it? Or some good how-to? |
|
A new FTP parser is implemented in MC. Thanks lftp project for that.
Branch: 2841_ftp_ls_parser. |
is that branch still WIP? it contains several unsquashed fixup! commits.
i don't quite understand the "get rid of extra string duplication" commit - while the second portion is obvious (and in fact i already thought of it while reading the import commit), the one inside the loop seems bogus, as the parsers *can* in fact clobber the string (at least MLSD does), and several are tried on the same input.
it would probably make sense to save the guessed parser persistently inside the connection object, both for performance and for reliability (when dirs with few entries are subsequently entered). |
Replying to ossi:
Thanks for review! push'd -f.
Done,
Agree. Get rid of extra string duplication in parse_ls_line().
It's not so simple as wanted. Let's keep the parser as close to the borrowed one as possible for now and make optimization after some time. |
|
Merged to master: [ff0949e].
|
|
Important
This issue was migrated from Trac:
leadman
(leadman@….onet.pl)ftpfs
,regression
Hi everyone,
as I was asked in ticket #2635 , I have compiled latest 'mc' from git. The problem with leading spaces in ftp connection still occurs. This bug occurs when connecting to FTP servers on AIX 5.3.0.0 and 6.1.0.0. The only difference with previous version of 'mc' is that now it shows spaces before some file names instantly after establishing an FTP connection(no part with "?" mark). I can provide gdb stack trace if this is necessary. I suppose correct component would be mc-vfs? As this bug makes 'mc' unusable with AIX ftp server I suggest to change it's priority to critical.
Below you will find compiled version:
Note
Original attachments:
leadman
(leadman@….onet.pl) onJul 17, 2012 at 7:43 UTC
The text was updated successfully, but these errors were encountered: