1
0
Fork 0

Silence symlink() error

If not silenced it gives "symlink(): Operation not supported" on my ubuntu system with mounted cifs share.
pull/3923/head
Markus Thielen 2015-04-09 09:45:50 +02:00
parent 4d134ce8a2
commit bd802407a8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {