summaryrefslogtreecommitdiff
path: root/src/legacy/getusershell.c
AgeCommit message (Collapse)AuthorLines
2024-06-21getusershell: skip blank lines and commentsRich Felker-2/+4
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.
2013-12-12include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy-2/+1
2012-09-29more close-on-exec fixes, mostly using new "e" flag to fopenRich Felker-1/+1
2012-09-07cleanup src/linux and src/misc trees, etc.Rich Felker-0/+33
previously, it was pretty much random which one of these trees a given function appeared in. they have now been organized into: src/linux: non-POSIX linux syscalls (possibly shard with other nixen) src/legacy: various obsolete/legacy functions, mostly wrappers src/misc: still mostly uncategorized; some misc POSIX, some nonstd src/crypt: crypt hash functions further cleanup will be done later.