Skip to content

Commit

Permalink
Merge pull request #213 from humanmade/fix-linux-uid
Browse files Browse the repository at this point in the history
Hotfix, use posix_getuid() to get $UID
  • Loading branch information
roborourke authored Aug 28, 2020
2 parents bd0b450 + 62b2ac3 commit 29b905c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/composer/class-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ protected function exec( InputInterface $input, OutputInterface $output, ?string
$has_stdin = ! posix_isatty( STDIN );
$has_stdout = ! posix_isatty( STDOUT );
if ( $this->is_linux() ) {
$user = '$UID';
$user = posix_getuid();
} else {
$user = 'www-data';
}
Expand Down

0 comments on commit 29b905c

Please sign in to comment.