Index: lib_vfs.c =================================================================== --- lib_vfs.c (revision 24074) +++ lib_vfs.c (revision 24075) @@ -314,6 +314,8 @@ if ((strcmp(path, "data") == 0) || (strcmp(path, "data/layers") == 0)) { if (isdir != NULL) *isdir = 1; + if (!wr) + return 0; } if (strncmp(path, "data/layers/", 12) == 0) return vfs_access_layer(pcb, path+12, data, wr, isdir); @@ -321,6 +323,8 @@ if (strcmp(path, "layer_groups") == 0) { if (isdir != NULL) *isdir = 1; + if (!wr) + return 0; } if (strncmp(path, "layer_groups/", 13) == 0) return vfs_access_layergrp(pcb, path+13, data, wr, isdir);