Skip to content

Fix CORE-5223#19

Merged
dyemanov merged 2 commits intoFirebirdSQL:masterfrom
aafemt:CORE-5223
May 15, 2016
Merged

Fix CORE-5223#19
dyemanov merged 2 commits intoFirebirdSQL:masterfrom
aafemt:CORE-5223

Conversation

@aafemt
Copy link
Copy Markdown
Contributor

@aafemt aafemt commented Apr 30, 2016

A little more clever parsing of path allow to use double dots in names but still avoid "up dir hack".

{
continue;
}
if (elem == PathUtils::up_dir_link) // skip next up dir
Copy link
Copy Markdown
Member

@asfernandes asfernandes May 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does FB still run (compiles for) in Win 9X based kernels? I do remember in this OS "..." (or more dots) was valid part of paths, meaning "...." and so. Is this compatible? Or is the old code (2.X) compatible with this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIR, Firebird doesn't support Win9X anymore.
Neither Windows 8 nor Linux support three dots in path.

@mkubecek
Copy link
Copy Markdown
Contributor

mkubecek commented May 4, 2016

To be more precise, "..." is a valid name for a directory or a file in Linux, it doesn't have any special meaning:

mike@unicorn:/tmp> mkdir ...
mike@unicorn:/tmp> touch .../...
mike@unicorn:/tmp> ls -la ...
total 0
drwxr-xr-x  2 mike users  60 May  4 23:20 .
drwxrwxrwt 22 root root  720 May  4 23:20 ..
-rw-r--r--  1 mike users   0 May  4 23:20 ...

Comment thread src/common/config/dir_list.cpp Outdated
{
continue;
}
if (elem == ".") // Skip current dir reference
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth adding PathUtils::curr_dir_link, I believe.

Copy link
Copy Markdown
Contributor Author

@aafemt aafemt May 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As requested.

@dyemanov dyemanov self-assigned this May 15, 2016
@dyemanov dyemanov merged commit d68d4fa into FirebirdSQL:master May 15, 2016
@aafemt aafemt deleted the CORE-5223 branch May 15, 2016 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants