mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-02-25 17:57:31 +03:00
both STDOUT and STDERR are written into `$info` which is then parsed for IP and port of the target socket listening. when the ports file can't be locked immediately `trying to acquire lock...` is printed on STDERR and in turn written into `$info`. trying to parse the IP then fails, resulting in a migration or replication failing. the bare open3 call is replaced by the run_command wrapper from pve-common to use a safe wrapper around open3 with the same functionality. STDERR is read separatey from STDOUT and the last line of STDERR is kept in case of errors. Fixes: 57acd6a ("fix #1452: also log stderr of remote command with insecure storage migration") Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Description
No description provided
Languages
Perl
99.2%
Makefile
0.7%