git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v1] travis-ci: printf $STATUS as string

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 26, 2017, 19:49 UTC
Message-ID
<alpine.DEB.2.20.1704262147550.3480@virtualbox>
In-Reply-To
<20170426193933.28961-1-larsxschneider@gmail.com>
Hi,
On Wed, 26 Apr 2017, Lars Schneider wrote:
Show 5 quoted lines
> If the $STATUS variable contains a "%" character then printf will
> interpret that as invalid format string. Fix this by formatting $STATUS
> as string.
> 
> Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
ACK.

For reference, the status should always be a single all-ASCII word, but sometimes it looks as if there is a server error that returns a full-blown HTML error page (including a style that contains something like 'width: 10%;' which would be misinterpreted by printf as a format string).

Ciao, Dscho

Previous: Lars Schneider
Message 2 of 2 in “travis-ci: printf $STATUS as string”
  1. travis-ci: printf $STATUS as stringLars Schneider, Apr 26, 2017
  2. Johannes SchindelinApr 26, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.