890 WebdavResource *resource, |
890 WebdavResource *resource, |
891 struct stat *s) |
891 struct stat *s) |
892 { |
892 { |
893 DefaultWebdavData *data = request->userdata; |
893 DefaultWebdavData *data = request->userdata; |
894 |
894 |
|
895 if(!s) { |
|
896 // stat is required for the default vfs |
|
897 // if s is null, the dav backend config is not right |
|
898 // (multiple backends configured and the primary backend doesn't |
|
899 // use the VFS) |
|
900 return 1; |
|
901 } |
|
902 |
895 // add all requested vfs properties like getcontentlength ... |
903 // add all requested vfs properties like getcontentlength ... |
896 if(webdav_add_vfs_properties( |
904 if(webdav_add_vfs_properties( |
897 resource, |
905 resource, |
898 request->sn->pool, |
906 request->sn->pool, |
899 data->vfsproperties, |
907 data->vfsproperties, |