summaryrefslogtreecommitdiff
path: root/src/envstore.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-20 20:46:54 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-20 20:47:02 +0100
commit41a6aa36f216e3020c51643c0dc8fce926d67b98 (patch)
tree2169de705fdc89a52add6996ae70680640abcfa9 /src/envstore.c
parentbd732f8f882ab1c5699ccbd8f1618995a46e5890 (diff)
store_open: Update the return NULL comment
Diffstat (limited to 'src/envstore.c')
-rw-r--r--src/envstore.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/envstore.c b/src/envstore.c
index 5ca1eec..cf4930b 100644
--- a/src/envstore.c
+++ b/src/envstore.c
@@ -27,10 +27,9 @@ static FILE * store_open(char *file) {
uid_t self_uid = geteuid();
FILE *fp = fopen(file, "r");
- /* Assume the store file does not exist and the store is empty
- * (-> return NULL for empty list)
- * If it does in fact exist but has wrong permissions or similar,
- * the user will only notice if it happens with envstore save/rm (FIXME)
+ /*
+ * err() should be used here, but since envstore save may or may not have
+ * an existing store to work with, return NULL if there's no usable store.
*/
if (fp == NULL)
return NULL;