aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIoan-Adrian Ratiu <adi@adirat.com>2016-12-10 21:54:07 +0200
committerDavid Bremner <david@tethera.net>2016-12-16 08:34:30 +0900
commitf2a038825b73d4b9fa6cfd3ecbe661f1e6a49840 (patch)
tree662a1b91fad9920bc96f673dcca04d4b2843ea80 /lib
parent59ec7960242dfa8382c440d719a394877fa0fc35 (diff)
notmuch-config: replace config reading function
Config files are currently read using glib's g_key_file_load_from_file function which is very inconvenient because it's limited by design to read only from "regular data files" in a filesystem. Because of this limitation notmuch can't read configs from pipes, fifos, sockets, stdin, etc. Not even "notmuch --config=/dev/stdin" works: Error reading configuration file /dev/stdin: Not a regular file So replace g_key_file_load_from_file with g_key_file_load_from_data which gives us much more freedom to read configs from multiple sources. This also helps the more security sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions