support/mkusers: allow comments in users tables
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 17 Oct 2015 15:50:19 +0000 (17:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 18 Oct 2015 15:52:21 +0000 (17:52 +0200)
commitf0c4456530b60e5b5119e74eb52c50cd7317792d
tree00d8368fdde49e7be565aa1b6068ecf950ca817b
parent8c49041bb254fd36e42ce287b167067b45941357
support/mkusers: allow comments in users tables

The format of the users table files is non trivial, so it is sometimes
handy to add comments explaining the syntax (or simply the reason for
the user) inline in the files.

Ignore empty lines and comment lines prefixed with '#' similar to shell
or makedevs files.

Packages that defined no user (the vast majority) would cause an empty
line to be present in the internal users table, hence the reason we
skipped empty usernames. Now that we ignore empty lines, we no longer
need to check for empty usernames.

Reported-by: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/mkusers