chiark / gitweb /
fileio: make parse_env_file() return number of parsed items
authorMichal Sekletar <msekleta@redhat.com>
Mon, 22 Sep 2014 07:38:38 +0000 (09:38 +0200)
committerMichal Sekletar <msekleta@redhat.com>
Thu, 25 Sep 2014 07:19:56 +0000 (09:19 +0200)
commita5f6c30da3ac58081108221bf8a0f6f1d84b33a9
tree63d30290083d307398b09c7c0684933c0430e8c3
parent078ef7b85ad77ba999588f72b31a50ced5907692
fileio: make parse_env_file() return number of parsed items

This commit introduces possibility to call parse_env_file_internal() and hand
over extra argument where we will accumulate how many items were successfully
parsed and pushed by callback. We make use of this in parse_env_file() and
return number of parsed items on success instead of always returning zero.

As a side-effect this commit should fix bug that locale settings in
/etc/locale.conf are not overriden by options passed via kernel command line.
src/shared/fileio.c