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

scoper should copy file permissions #463

Closed
avdv opened this issue Mar 15, 2021 · 1 comment · Fixed by #753
Closed

scoper should copy file permissions #463

avdv opened this issue Mar 15, 2021 · 1 comment · Fixed by #753

Comments

@avdv
Copy link

avdv commented Mar 15, 2021

Bug report

Question Answer
PHP-Scoper version 0.14.0
PHP version 7.4.16
Platform with version Alpine Linux 3.13.2

Scoper does not preserve file permissions when copying. I observed this for script files which are used in composer config:

$ ls -lh bin
-rwxrwxr-x    1 root     root        2.8K Mar 15 20:31 post-install-update.sh
-rwxrwxr-x    1 root     root        1.2K Mar 15 20:31 scoper-fix-autoloader.php
$ php-scoper add-prefix
    ____  __  ______     _____
   / __ \/ / / / __ \   / ___/_________  ____  ___  _____
  / /_/ / /_/ / /_/ /   \__ \/ ___/ __ \/ __ \/ _ \/ ___/
 / ____/ __  / ____/   ___/ / /__/ /_/ / /_/ /  __/ /
/_/   /_/ /_/_/       /____/\___/\____/ .___/\___/_/
                                     /_/

PHP Scoper version 0.14.0 2020-12-21 14:36:07 UTC

 3215/3215 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

                                                                                                                        
 [OK] Successfully prefixed 3215 files.                                                                                 
                                                                                                                        

 // Memory usage: 31.77MB (peak: 49.64MB), time: 14.78s                                                                 


$ ls -lh build/bin/
total 8K     
-rw-r--r--    1 root     root        2.8K Mar 15 20:49 post-install-update.sh
-rw-r--r--    1 root     root        1.2K Mar 15 20:49 scoper-fix-autoloader.php
@theofidry
Copy link
Member

Indeed, PR welcome!

theofidry added a commit to theofidry/php-scoper that referenced this issue Nov 12, 2022
theofidry added a commit that referenced this issue Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants