diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-06-21 20:54:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-06-21 20:54:30 -0400 |
commit | ab31e9d6a0fa7c5c408856c89df2dfb12c344039 (patch) | |
tree | 9cb51edb58bab3e0a5875fc18e3cf952ceac0450 /src/linux/sethostname.c | |
parent | 53ac44ff4c0e91536e1e34e8e59e19d2a1196a67 (diff) | |
download | musl-ab31e9d6a0fa7c5c408856c89df2dfb12c344039.zip musl-ab31e9d6a0fa7c5c408856c89df2dfb12c344039.tar.gz musl-ab31e9d6a0fa7c5c408856c89df2dfb12c344039.tar.bz2 |
getusershell: skip blank lines and comments
this interface does not have a lot of historical consensus on how it
handles the contents of the /etc/shells file in regard to whitespace
and comments, but the commonality between all checked is that they
ignore lines that are blank or that begin with '#', so that is the
behavior we adopt.
Diffstat (limited to 'src/linux/sethostname.c')
0 files changed, 0 insertions, 0 deletions