From: Peter Krempa Date: Fri, 13 Jan 2017 15:59:30 +0000 (+0100) Subject: storage: fs: Compile file backends even if filesystem support is disabled X-Git-Tag: CVE-2017-2635~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d66dda650476b363918f3a88d66c082a3579a5cd;p=thirdparty%2Flibvirt.git storage: fs: Compile file backends even if filesystem support is disabled The file backend code was mistakenly put into #if WITH_STORAGE_FS. This is not necessary since all the backends just access files on disk, and thus the code for WITH_STORAGE_DIR is sufficient to compile everything. --- diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c index 53710db11c..15b35995df 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -1390,6 +1390,7 @@ virStorageBackend virStorageBackendNetFileSystem = { .downloadVol = virStorageBackendVolDownloadLocal, .wipeVol = virStorageBackendVolWipeLocal, }; +#endif /* WITH_STORAGE_FS */ typedef struct _virStorageFileBackendFsPriv virStorageFileBackendFsPriv; @@ -1574,5 +1575,3 @@ virStorageFileBackend virStorageFileBackendDir = { .storageFileGetUniqueIdentifier = virStorageFileBackendFileGetUniqueIdentifier, }; - -#endif /* WITH_STORAGE_FS */