bug #39555 [FrameworkBundle] Fix NFS detection on macOs (jderusse)
This PR was merged into the 5.2 branch.
Discussion
----------
[FrameworkBundle] Fix NFS detection on macOs
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #39552
| License | MIT
| Doc PR | -
Commits
-------
79718fb70f
Fix NFS detection on macOs
This commit is contained in:
commit
7a7ded2a6b
@ -207,8 +207,8 @@ EOF
|
|||||||
|
|
||||||
if (null === $mounts) {
|
if (null === $mounts) {
|
||||||
$mounts = [];
|
$mounts = [];
|
||||||
if ('/' === \DIRECTORY_SEPARATOR && $mounts = @file('/proc/mounts')) {
|
if ('/' === \DIRECTORY_SEPARATOR && $files = @file('/proc/mounts')) {
|
||||||
foreach ($mounts as $mount) {
|
foreach ($files as $mount) {
|
||||||
$mount = \array_slice(explode(' ', $mount), 1, -3);
|
$mount = \array_slice(explode(' ', $mount), 1, -3);
|
||||||
if (!\in_array(array_pop($mount), ['vboxsf', 'nfs'])) {
|
if (!\in_array(array_pop($mount), ['vboxsf', 'nfs'])) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user