[Pkg-tigervnc-devel] Bug#849963: tigervnc-standalone-server: Syntax error in /usr/bin/tigervncserver

Maik Zumstrull maik at zumstrull.net
Mon Jan 2 17:22:56 UTC 2017


Package: tigervnc-standalone-server
Version: 1.7.0-2
Severity: normal


In line 705, in the code path for the -fg option, the script does:

system $cmd[0] (@cmd);

This will lead to a "Can't use string as a subroutine ref" error with
current Perl releases. The correct syntax is

system { $cmd[0] } (@cmd);

or

system { $cmd[0] } @cmd;

The final parentheses are optional but not harmful. The braces are very
not optional. In defense of the author, the Perl documentation for
"system" doesn't indicate this at all; it's in the documentation for the
related "exec" function.



More information about the Pkg-tigervnc-devel mailing list