Comment 8 for bug 1219650

Revision history for this message
Alberto Milone (albertomilone) wrote :

SRU request:

[Impact]

 * As a result of this bug, systems whose card has a bus id containing numbers such as "08" or "09" numbers will trigger an error in printf where it treats these string values with leading zeros as octal. This causes the postinst script to fail.

[Test Case]

 * Enable the precise-proposed or the saucy-proposed repository and install nvidia-prime (0.4.2~hybrid0.0.1 in precise or 0.4.2~hybrid0.1 in saucy).

 * If the package can be installed without errors, then the fix is correct.

 * Alternatively, you can launch the attached script as follows, you'll be able to reproduce the issue:
 sh printf_test.sh reproduce

 You can then test the fix by running the attached script without any arguments:
 sh printf_test.sh

[Regression Potential]

 * The regression potential here is zero. As the attached script demonstrates.