busybox/archival/libarchive/filter_accept_all.c
<<
>>
Prefs
   1/* vi: set sw=4 ts=4: */
   2/*
   3 * Copyright (C) 2002 by Glenn McGrath
   4 *
   5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
   6 */
   7#include "libbb.h"
   8#include "bb_archive.h"
   9
  10/* Accept any non-null name, its not really a filter at all */
  11char FAST_FUNC filter_accept_all(archive_handle_t *archive_handle)
  12{
  13        if (archive_handle->file_header->name)
  14                return EXIT_SUCCESS;
  15        return EXIT_FAILURE;
  16}
  17