Skip to content

support: accept text files with missing terminating \n (branch yem/newlines)

Yann E. MORIN buildroot 1 version Applied

Status from this message: Applied to master, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5support/scripts/mkusers: fix UID/GID confusionsupport/scripts/mkusers+2 -20 replies
2/5support/scripts/mkusers: fix shellcheck errors.checkpackageignore support/scripts/mkusers+21 -70 replies
3/5support/scripts/mkusers: accept user tables without terminating \nsupport/scripts/mkusers+2 -32 replies
4/5support/download/check-hash: fix shellcheck errors.checkpackageignore support/download/check-hash+6 -30 replies
5/5support/download/check-hash: accept hash files without terminating \nsupport/download/check-hash+5 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/5] support: accept text files with missing terminating \n (branch yem/newlines)

Hello All!

As explained in the last commit, we expect text files to be properly terminated with a full line, i.e. one having a final \n.

However, a lot of people do not have proper text editors, and those do not add the terminating newline, and do not honour our .editorconfig.

This series fixes two of the affected scripts, and also fixes shellcheck errors in both. Fixing those also uncovered an actual issue in mkusers, so that too is fixed.

Regards,
Yann E. MORIN.

----------------------------------------------------------------
Yann E. MORIN (5):
support/scripts/mkusers: fix UID/GID confusion support/scripts/mkusers: fix shellcheck errors support/scripts/mkusers: accept user tables without terminating \n support/download/check-hash: fix shellcheck errors support/download/check-hash: accept hash files without terminating \n

 .checkpackageignore         |  2 --
 support/download/check-hash | 11 ++++++++---
 support/scripts/mkusers     | 34 ++++++++++++++++++++++++----------
 3 files changed, 32 insertions(+), 15 deletions(-)

--
.-----------------.--------------------.------------------.--------------------.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot