From 13772226a13cf6a8cce30db841946d29c9952c9a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 19 Nov 2019 21:15:40 +0100 Subject: Disable gensquashfs directory scanning on Windows - We can only pack directories and files anyway. - What file modes should we use? Signed-off-by: David Oberhollenzer --- mkfs/dirscan.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mkfs/dirscan.c b/mkfs/dirscan.c index 0a019ec..824fba5 100644 --- a/mkfs/dirscan.c +++ b/mkfs/dirscan.c @@ -121,6 +121,15 @@ fail: } #endif +#ifdef _WIN32 +int fstree_from_dir(fstree_t *fs, const char *path, void *selinux_handle, + sqfs_xattr_writer_t *xwr, unsigned int flags) +{ + (void)fs; (void)path; (void)selinux_handle; (void)xwr; (void)flags; + fputs("Packing a directory is not supported on Windows.\n", stderr); + return -1; +} +#else static int xattr_xcan_dfs(const char *path_prefix, void *selinux_handle, sqfs_xattr_writer_t *xwr, unsigned int flags, tree_node_t *node) @@ -309,3 +318,4 @@ int fstree_from_dir(fstree_t *fs, const char *path, void *selinux_handle, return 0; } +#endif -- cgit v1.2.3