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

doing 'ls -l' on synlink will always show lrwxrwxrwx on Solaris #1506

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sashan
Copy link
Contributor

@Sashan Sashan commented Aug 18, 2022

No description provided.

my $expected = 'lrwxr-xr-x';
my $expected;
if ($^O eq 'solaris') {
$expected = 'lrwxrwxrwx';
Copy link
Member

Choose a reason for hiding this comment

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

Sigh. I hate inconsistencies like this. Why is Solaris so different from other platforms in this manner? It only adds to brittleness of maintenance of things like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there are more those platforms bends for other solaris cases. In case of lrwxrwxrwx symlink match there is similar platform hack used for linux in t/lib/ProFTPD/Tests/Config/ShowSymlinks.pm here:

 463 
 464       # Different platforms' Perl create symlinks with different perms
 465       my $expected_perms = 'lrwxr-xr-x';
 466       if ($^O eq 'linux') {
 467         $expected_perms = 'lrwxrwxrwx';
 468       }
 469 

snippet comes from current proftpd source code.

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.

2 participants