forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit232a8e2
committed
Fix erroneous error reports in snapbuild.c.
It's pretty unhelpful to report the wrong file name in a complaintabout syscall failure, but SnapBuildSerialize managed to do that twicein a span of 50 lines. Also fix half a dozen missing or poorly-chosenerrcode assignments; that's mostly cosmetic, but still wrong.Noted while studying recent failures on buildfarm member nightjar.I'm not sure whether those reports are actually giving the wrongfilename, because there are two places here with identicallyspelled error messages. The other one is specifically coded notto report ENOENT, but if it's this one, how could we be gettingENOENT from open() with O_CREAT? Need to sit back and await results.However, these ereports are clearly broken from birth, so back-patch.1 parentb7ec820 commit232a8e2
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1521 | 1521 |
| |
1522 | 1522 |
| |
1523 | 1523 |
| |
1524 |
| - | |
| 1524 | + | |
| 1525 | + | |
1525 | 1526 |
| |
1526 | 1527 |
| |
1527 | 1528 |
| |
| |||
1563 | 1564 |
| |
1564 | 1565 |
| |
1565 | 1566 |
| |
1566 |
| - | |
| 1567 | + | |
1567 | 1568 |
| |
1568 | 1569 |
| |
1569 | 1570 |
| |
| |||
1606 | 1607 |
| |
1607 | 1608 |
| |
1608 | 1609 |
| |
1609 |
| - | |
| 1610 | + | |
| 1611 | + | |
1610 | 1612 |
| |
1611 | 1613 |
| |
1612 | 1614 |
| |
| |||
1747 | 1749 |
| |
1748 | 1750 |
| |
1749 | 1751 |
| |
1750 |
| - | |
| 1752 | + | |
| 1753 | + | |
1751 | 1754 |
| |
1752 | 1755 |
| |
1753 | 1756 |
| |
1754 | 1757 |
| |
1755 |
| - | |
| 1758 | + | |
| 1759 | + | |
1756 | 1760 |
| |
1757 | 1761 |
| |
1758 | 1762 |
| |
| |||
1847 | 1851 |
| |
1848 | 1852 |
| |
1849 | 1853 |
| |
1850 |
| - | |
| 1854 | + | |
1851 | 1855 |
| |
1852 | 1856 |
| |
1853 | 1857 |
| |
|
0 commit comments
Comments
(0)