X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain-afb-daemon.c;h=cc07e86f7669ecded996736555fe3761ab3d4793;hb=d6f6df814d87b5d5f77570196576637c8deb9afe;hp=d825d803858708cd60dae37c1bc841d4d78e6c68;hpb=f9c743046f94769c25ffc5bfd8d190c53cc4d613;p=src%2Fapp-framework-binder.git diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c index d825d803..cc07e86f 100644 --- a/src/main-afb-daemon.c +++ b/src/main-afb-daemon.c @@ -358,8 +358,12 @@ static struct afb_hsrv *start_http_server() } if (afb_hreq_init_download_path(uploaddir)) { - ERROR("unable to set the upload directory %s", uploaddir); - return NULL; + static const char fallback_uploaddir[] = "/tmp"; + WARNING("unable to set the upload directory %s", uploaddir); + if (afb_hreq_init_download_path(fallback_uploaddir)) { + ERROR("unable to fallback to upload directory %s", fallback_uploaddir); + return NULL; + } } hsrv = afb_hsrv_create();