From bd802407a8f3c6f221749af7d2dee795ae85b84a Mon Sep 17 00:00:00 2001 From: Markus Thielen Date: Thu, 9 Apr 2015 09:45:50 +0200 Subject: [PATCH] Silence symlink() error If not silenced it gives "symlink(): Operation not supported" on my ubuntu system with mounted cifs share. --- src/Composer/Installer/LibraryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 5d6180bb0..aa2d46062 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -239,7 +239,7 @@ class LibraryInstaller implements InstallerInterface // when using it in smbfs mounted folder $relativeBin = $this->filesystem->findShortestPath($link, $binPath); chdir(dirname($link)); - if (false === symlink($relativeBin, $link)) { + if (false === @symlink($relativeBin, $link)) { throw new \ErrorException(); } } catch (\ErrorException $e) {