From c933b0aff94ecd5335690e2836963db4d9e331f1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 14 Nov 2013 21:01:51 +0000 Subject: Sort non zero-padded numerical filename parts correctly. --- content/fetchers/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/fetchers/file.c') diff --git a/content/fetchers/file.c b/content/fetchers/file.c index 4fe1c9867..c574c2160 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -508,7 +508,7 @@ static void fetch_file_process_dir(struct fetch_file_context *ctx, int i; /* directory entry index */ int n; /* number of directory entries */ - n = scandir(ctx->path, &listing, 0, alphasort); + n = scandir(ctx->path, &listing, 0, dir_sort_alpha); if (n < 0) { fetch_file_process_error(ctx, fetch_file_errno_to_http_code(errno)); -- cgit v1.2.3