
21 Apr
2016
21 Apr
'16
8:04 a.m.
Dear Cole, Cole Robinson <crobinso@redhat.com> writes: [tests/testutils.c:virTestRewrapFile()]
+ /* The 'echo' syntax lets us read and write the file in one shot */ + if (virAsprintf(&cmd, "echo \"$(%s/test-wrap-argv.pl %s)\" > %s", + abs_srcdir, filename, filename) < 0) + return -1; [...] + return system(cmd);
Doesn't the shell truncate the file before test-wrap-argv.pl gets a chance to read the original content? Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641