Преглед на файлове

Silence symlink() error

If not silenced it gives "symlink(): Operation not supported" on my ubuntu system with mounted cifs share.
Markus Thielen преди 10 години
родител
ревизия
bd802407a8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 1
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) {