Commit 801c24a4 for guacamole.apache.org
commit 801c24a43548692d3c0bd38c276dad6e2c95dd38
Author: KCM Build <dev@keepersecurity.com>
Date: Wed Aug 5 13:12:07 2026 -0400
GUACAMOLE-2314: guacd fails to start when /etc/guacamole/guacd.conf doesn't exist.
diff --git a/src/guacd/conf-file.c b/src/guacd/conf-file.c
index 3a74da8a..aded4fad 100644
--- a/src/guacd/conf-file.c
+++ b/src/guacd/conf-file.c
@@ -197,12 +197,16 @@ guacd_config* guacd_conf_load() {
int fd = open(GUACD_CONF_FILE, O_RDONLY);
/* Notify of errors preventing reading */
- if (fd < 0 && errno != ENOENT) {
- fprintf(stderr, "Unable to open \"" GUACD_CONF_FILE "\": %s\n", strerror(errno));
- guac_mem_free(conf->bind_host);
- guac_mem_free(conf->bind_port);
- guac_mem_free(conf);
- return NULL;
+ if (fd < 0) {
+ if (errno != ENOENT) {
+ fprintf(stderr, "Unable to open \"" GUACD_CONF_FILE "\": %s\n", strerror(errno));
+ guac_mem_free(conf->bind_host);
+ guac_mem_free(conf->bind_port);
+ guac_mem_free(conf);
+ return NULL;
+ }
+ /* Return default configuration if the guacd configuration file doesn't exist */
+ return conf;
}
int retval = guacd_conf_parse_file(conf, fd);