Blame libarchive/test/test_write_disk.c

Packit Service 1d0348
/*-
Packit Service 1d0348
 * Copyright (c) 2003-2007 Tim Kientzle
Packit Service 1d0348
 * All rights reserved.
Packit Service 1d0348
 *
Packit Service 1d0348
 * Redistribution and use in source and binary forms, with or without
Packit Service 1d0348
 * modification, are permitted provided that the following conditions
Packit Service 1d0348
 * are met:
Packit Service 1d0348
 * 1. Redistributions of source code must retain the above copyright
Packit Service 1d0348
 *    notice, this list of conditions and the following disclaimer.
Packit Service 1d0348
 * 2. Redistributions in binary form must reproduce the above copyright
Packit Service 1d0348
 *    notice, this list of conditions and the following disclaimer in the
Packit Service 1d0348
 *    documentation and/or other materials provided with the distribution.
Packit Service 1d0348
 *
Packit Service 1d0348
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
Packit Service 1d0348
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Packit Service 1d0348
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Packit Service 1d0348
 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
Packit Service 1d0348
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
Packit Service 1d0348
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit Service 1d0348
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit Service 1d0348
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit Service 1d0348
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
Packit Service 1d0348
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 1d0348
 */
Packit Service 1d0348
#include "test.h"
Packit Service 1d0348
__FBSDID("$FreeBSD: head/lib/libarchive/test/test_write_disk.c 201247 2009-12-30 05:59:21Z kientzle $");
Packit Service 1d0348
Packit Service 1d0348
#define UMASK 022
Packit Service 1d0348
/*
Packit Service 1d0348
 * When comparing mode values, ignore high-order bits
Packit Service 1d0348
 * that are set on some OSes.  This should cover the bits
Packit Service 1d0348
 * we're interested in (standard mode bits + file type bits)
Packit Service 1d0348
 * while ignoring extra markers such as Haiku/BeOS index
Packit Service 1d0348
 * flags.
Packit Service 1d0348
 */
Packit Service 1d0348
#define MODE_MASK 0777777
Packit Service 1d0348
Packit Service 1d0348
static void create(struct archive_entry *ae, const char *msg)
Packit Service 1d0348
{
Packit Service 1d0348
	struct archive *ad;
Packit Service 1d0348
	struct stat st;
Packit Service 1d0348
Packit Service 1d0348
	/* Write the entry to disk. */
Packit Service 1d0348
	assert((ad = archive_write_disk_new()) != NULL);
Packit Service 1d0348
	failure("%s", msg);
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_header(ad, ae));
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
Packit Service 1d0348
	assertEqualInt(0, archive_write_free(ad));
Packit Service 1d0348
Packit Service 1d0348
	/* Test the entries on disk. */
Packit Service 1d0348
	assert(0 == stat(archive_entry_pathname(ae), &st);;
Packit Service 1d0348
	failure("%s", msg);
Packit Service 1d0348
Packit Service 1d0348
#if !defined(_WIN32) || defined(__CYGWIN__)
Packit Service 1d0348
	/* When verifying a dir, ignore the S_ISGID bit, as some systems set
Packit Service 1d0348
	 * that automatically. */
Packit Service 1d0348
	if (archive_entry_filetype(ae) == AE_IFDIR)
Packit Service 1d0348
		st.st_mode &= ~S_ISGID;
Packit Service 1d0348
	assertEqualInt(st.st_mode & MODE_MASK,
Packit Service 1d0348
	    archive_entry_mode(ae) & ~UMASK & MODE_MASK);
Packit Service 1d0348
#endif
Packit Service 1d0348
}
Packit Service 1d0348
Packit Service 1d0348
static void create_reg_file(struct archive_entry *ae, const char *msg)
Packit Service 1d0348
{
Packit Service 1d0348
	static const char data[]="abcdefghijklmnopqrstuvwxyz";
Packit Service 1d0348
	struct archive *ad;
Packit Service 1d0348
Packit Service 1d0348
	/* Write the entry to disk. */
Packit Service 1d0348
	assert((ad = archive_write_disk_new()) != NULL);
Packit Service 1d0348
        archive_write_disk_set_options(ad, ARCHIVE_EXTRACT_TIME);
Packit Service 1d0348
	failure("%s", msg);
Packit Service 1d0348
	/*
Packit Service 1d0348
	 * A touchy API design issue: archive_write_data() does (as of
Packit Service 1d0348
	 * 2.4.12) enforce the entry size as a limit on the data
Packit Service 1d0348
	 * written to the file.  This was not enforced prior to
Packit Service 1d0348
	 * 2.4.12.  The change was prompted by the refined
Packit Service 1d0348
	 * hardlink-restore semantics introduced at that time.  In
Packit Service 1d0348
	 * short, libarchive needs to know whether a "hardlink entry"
Packit Service 1d0348
	 * is going to overwrite the contents so that it can know
Packit Service 1d0348
	 * whether or not to open the file for writing.  This implies
Packit Service 1d0348
	 * that there is a fundamental semantic difference between an
Packit Service 1d0348
	 * entry with a zero size and one with a non-zero size in the
Packit Service 1d0348
	 * case of hardlinks and treating the hardlink case
Packit Service 1d0348
	 * differently from the regular file case is just asking for
Packit Service 1d0348
	 * trouble.  So, a zero size must always mean that no data
Packit Service 1d0348
	 * will be accepted, which is consistent with the file size in
Packit Service 1d0348
	 * the entry being a maximum size.
Packit Service 1d0348
	 */
Packit Service 1d0348
	archive_entry_set_size(ae, sizeof(data));
Packit Service 1d0348
	archive_entry_set_mtime(ae, 123456789, 0);
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_header(ad, ae));
Packit Service 1d0348
	assertEqualInt(sizeof(data), archive_write_data(ad, data, sizeof(data)));
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
Packit Service 1d0348
	assertEqualInt(0, archive_write_free(ad));
Packit Service 1d0348
Packit Service 1d0348
	/* Test the entries on disk. */
Packit Service 1d0348
	assertIsReg(archive_entry_pathname(ae), archive_entry_mode(ae) & 0777);
Packit Service 1d0348
	assertFileSize(archive_entry_pathname(ae), sizeof(data));
Packit Service 1d0348
	/* test_write_disk_times has more detailed tests of this area. */
Packit Service 1d0348
	assertFileMtime(archive_entry_pathname(ae), 123456789, 0);
Packit Service 1d0348
        failure("No atime given, so atime should get set to current time");
Packit Service 1d0348
	assertFileAtimeRecent(archive_entry_pathname(ae));
Packit Service 1d0348
}
Packit Service 1d0348
Packit Service 1d0348
static void create_reg_file2(struct archive_entry *ae, const char *msg)
Packit Service 1d0348
{
Packit Service 1d0348
	const int datasize = 100000;
Packit Service 1d0348
	char *data;
Packit Service 1d0348
	struct archive *ad;
Packit Service 1d0348
	int i;
Packit Service 1d0348
Packit Service 1d0348
	data = malloc(datasize);
Packit Service 1d0348
	for (i = 0; i < datasize; i++)
Packit Service 1d0348
		data[i] = (char)(i % 256);
Packit Service 1d0348
Packit Service 1d0348
	/* Write the entry to disk. */
Packit Service 1d0348
	assert((ad = archive_write_disk_new()) != NULL);
Packit Service 1d0348
	failure("%s", msg);
Packit Service 1d0348
	/*
Packit Service 1d0348
	 * See above for an explanation why this next call
Packit Service 1d0348
	 * is necessary.
Packit Service 1d0348
	 */
Packit Service 1d0348
	archive_entry_set_size(ae, datasize);
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_header(ad, ae));
Packit Service 1d0348
	for (i = 0; i < datasize - 999; i += 1000) {
Packit Service 1d0348
		assertEqualIntA(ad, ARCHIVE_OK,
Packit Service 1d0348
		    archive_write_data_block(ad, data + i, 1000, i));
Packit Service 1d0348
	}
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
Packit Service 1d0348
	assertEqualInt(0, archive_write_free(ad));
Packit Service 1d0348
Packit Service 1d0348
	/* Test the entries on disk. */
Packit Service 1d0348
	assertIsReg(archive_entry_pathname(ae), archive_entry_mode(ae) & 0777);
Packit Service 1d0348
	assertFileSize(archive_entry_pathname(ae), i);
Packit Service 1d0348
	assertFileContents(data, datasize, archive_entry_pathname(ae));
Packit Service 1d0348
	free(data);
Packit Service 1d0348
}
Packit Service 1d0348
Packit Service 1d0348
static void create_reg_file3(struct archive_entry *ae, const char *msg)
Packit Service 1d0348
{
Packit Service 1d0348
	static const char data[]="abcdefghijklmnopqrstuvwxyz";
Packit Service 1d0348
	struct archive *ad;
Packit Service 1d0348
	struct stat st;
Packit Service 1d0348
Packit Service 1d0348
	/* Write the entry to disk. */
Packit Service 1d0348
	assert((ad = archive_write_disk_new()) != NULL);
Packit Service 1d0348
	failure("%s", msg);
Packit Service 1d0348
	/* Set the size smaller than the data and verify the truncation. */
Packit Service 1d0348
	archive_entry_set_size(ae, 5);
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_header(ad, ae));
Packit Service 1d0348
	assertEqualInt(5, archive_write_data(ad, data, sizeof(data)));
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
Packit Service 1d0348
	assertEqualInt(0, archive_write_free(ad));
Packit Service 1d0348
Packit Service 1d0348
	/* Test the entry on disk. */
Packit Service 1d0348
	assert(0 == stat(archive_entry_pathname(ae), &st);;
Packit Service 1d0348
	failure("st.st_mode=%o archive_entry_mode(ae)=%o",
Packit Service 1d0348
	    st.st_mode, archive_entry_mode(ae));
Packit Service 1d0348
#if !defined(_WIN32) || defined(__CYGWIN__)
Packit Service 1d0348
	assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK));
Packit Service 1d0348
#endif
Packit Service 1d0348
	assertEqualInt(st.st_size, 5);
Packit Service 1d0348
}
Packit Service 1d0348
Packit Service 1d0348
Packit Service 1d0348
static void create_reg_file4(struct archive_entry *ae, const char *msg)
Packit Service 1d0348
{
Packit Service 1d0348
	static const char data[]="abcdefghijklmnopqrstuvwxyz";
Packit Service 1d0348
	struct archive *ad;
Packit Service 1d0348
	struct stat st;
Packit Service 1d0348
Packit Service 1d0348
	/* Write the entry to disk. */
Packit Service 1d0348
	assert((ad = archive_write_disk_new()) != NULL);
Packit Service 1d0348
	/* Leave the size unset.  The data should not be truncated. */
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_header(ad, ae));
Packit Service 1d0348
	assertEqualInt(ARCHIVE_OK,
Packit Service 1d0348
	    archive_write_data_block(ad, data, sizeof(data), 0));
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
Packit Service 1d0348
	assertEqualInt(0, archive_write_free(ad));
Packit Service 1d0348
Packit Service 1d0348
	/* Test the entry on disk. */
Packit Service 1d0348
	assert(0 == stat(archive_entry_pathname(ae), &st);;
Packit Service 1d0348
	failure("st.st_mode=%o archive_entry_mode(ae)=%o",
Packit Service 1d0348
	    st.st_mode, archive_entry_mode(ae));
Packit Service 1d0348
#if !defined(_WIN32) || defined(__CYGWIN__)
Packit Service 1d0348
	assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK));
Packit Service 1d0348
#endif
Packit Service 1d0348
	failure(msg);
Packit Service 1d0348
	assertEqualInt(st.st_size, sizeof(data));
Packit Service 1d0348
}
Packit Service 1d0348
Packit Service 1d0348
#if defined(_WIN32) && !defined(__CYGWIN__)
Packit Service 1d0348
static void create_reg_file_win(struct archive_entry *ae, const char *msg)
Packit Service 1d0348
{
Packit Service 1d0348
	static const char data[]="abcdefghijklmnopqrstuvwxyz";
Packit Service 1d0348
	struct archive *ad;
Packit Service 1d0348
	struct _stat st;
Packit Service 1d0348
	wchar_t *p, *fname;
Packit Service 1d0348
	size_t l;
Packit Service 1d0348
Packit Service 1d0348
	/* Write the entry to disk. */
Packit Service 1d0348
	assert((ad = archive_write_disk_new()) != NULL);
Packit Service 1d0348
	archive_write_disk_set_options(ad, ARCHIVE_EXTRACT_TIME);
Packit Service 1d0348
	failure("%s", msg);
Packit Service 1d0348
	archive_entry_set_size(ae, sizeof(data));
Packit Service 1d0348
	archive_entry_set_mtime(ae, 123456789, 0);
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_header(ad, ae));
Packit Service 1d0348
	assertEqualInt(sizeof(data), archive_write_data(ad, data, sizeof(data)));
Packit Service 1d0348
	assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
Packit Service 1d0348
	assertEqualInt(0, archive_write_free(ad));
Packit Service 1d0348
Packit Service 1d0348
	/* Test the entries on disk. */
Packit Service 1d0348
	l = wcslen(archive_entry_pathname_w(ae));
Packit Service 1d0348
	fname = malloc((l + 1) * sizeof(wchar_t));
Packit Service 1d0348
	assert(NULL != fname);
Packit Service 1d0348
	wcscpy(fname, archive_entry_pathname_w(ae));
Packit Service 1d0348
	p = fname;
Packit Service 1d0348
	/* Skip leading drive letter from archives created
Packit Service 1d0348
	 * on Windows. */
Packit Service 1d0348
	if (((p[0] >= L'a' && p[0] <= L'z') ||
Packit Service 1d0348
	     (p[0] >= L'A' && p[0] <= L'Z')) &&
Packit Service 1d0348
		 p[1] == L':' && p[2] == L'\\') {
Packit Service 1d0348
		p += 3;
Packit Service 1d0348
	}
Packit Service 1d0348
	/* Replace unusable characters in Windows to '_' */
Packit Service 1d0348
	for (; *p != L'\0'; p++)
Packit Service 1d0348
		if (*p == L':' || *p == L'*' || *p == L'?' ||
Packit Service 1d0348
		    *p == L'"' || *p == L'<' || *p == L'>' || *p == L'|')
Packit Service 1d0348
			*p = '_';
Packit Service 1d0348
	assert(0 == _wstat(fname, &st);;
Packit Service 1d0348
	failure("st.st_mode=%o archive_entry_mode(ae)=%o",
Packit Service 1d0348
	    st.st_mode, archive_entry_mode(ae));
Packit Service 1d0348
	assertEqualInt(st.st_size, sizeof(data));
Packit Service 1d0348
	free(fname);
Packit Service 1d0348
}
Packit Service 1d0348
#endif /* _WIN32 && !__CYGWIN__ */
Packit Service 1d0348
Packit Service 1d0348
DEFINE_TEST(test_write_disk)
Packit Service 1d0348
{
Packit Service 1d0348
	struct archive_entry *ae;
Packit Service 1d0348
#if defined(_WIN32) && !defined(__CYGWIN__)
Packit Service 1d0348
	wchar_t *fullpath;
Packit Service 1d0348
	DWORD l;
Packit Service 1d0348
#endif
Packit Service 1d0348
Packit Service 1d0348
	/* Force the umask to something predictable. */
Packit Service 1d0348
	assertUmask(UMASK);
Packit Service 1d0348
Packit Service 1d0348
	/* A regular file. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file(ae, "Test creating a regular file");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* Another regular file. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file2");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file2(ae, "Test creating another regular file");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A regular file with a size restriction */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file3");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file3(ae, "Regular file with size restriction");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A regular file with an unspecified size */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file3");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file4(ae, "Regular file with unspecified size");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A regular file over an existing file */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0724);
Packit Service 1d0348
	create(ae, "Test creating a file over an existing file.");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A directory. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "dir");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFDIR | 0555);
Packit Service 1d0348
	create(ae, "Test creating a regular dir.");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A directory over an existing file. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFDIR | 0742);
Packit Service 1d0348
	create(ae, "Test creating a dir over an existing file.");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A file over an existing dir. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname(ae, "file");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0744);
Packit Service 1d0348
	create(ae, "Test creating a file over an existing dir.");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
#if defined(_WIN32) && !defined(__CYGWIN__)
Packit Service 1d0348
	/* A file with unusable characters in its file name. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname_w(ae, L"f:i*l?e\"fl|e");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file_win(ae, "Test creating a regular file"
Packit Service 1d0348
	    " with unusable characters in its file name");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A file with unusable characters in its directory name. */
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname_w(ae, L"d:i*r?e\"c<t>o|ry/file1");
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file_win(ae, "Test creating a regular file"
Packit Service 1d0348
	    " with unusable characters in its file name");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
Packit Service 1d0348
	/* A full-path file with unusable characters in its file name. */
Packit Service 1d0348
	assert((l = GetCurrentDirectoryW(0, NULL)) != 0);
Packit Service 1d0348
	assert((fullpath = malloc((l + 20) * sizeof(wchar_t))) != NULL);
Packit Service 1d0348
	assert((l = GetCurrentDirectoryW(l, fullpath)) != 0);
Packit Service 1d0348
	wcscat(fullpath, L"\\f:i*l?e\"fl|e");
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname_w(ae, fullpath);
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file_win(ae, "Test creating a regular file"
Packit Service 1d0348
	    " with unusable characters in its file name");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
	free(fullpath);
Packit Service 1d0348
Packit Service 1d0348
	/* A full-path file with unusable characters in its directory name. */
Packit Service 1d0348
	assert((l = GetCurrentDirectoryW(0, NULL)) != 0);
Packit Service 1d0348
	assert((fullpath = malloc((l + 30) * sizeof(wchar_t))) != NULL);
Packit Service 1d0348
	assert((l = GetCurrentDirectoryW(l, fullpath)) != 0);
Packit Service 1d0348
	wcscat(fullpath, L"\\d:i*r?e\"c<t>o|ry/file1");
Packit Service 1d0348
	assert((ae = archive_entry_new()) != NULL);
Packit Service 1d0348
	archive_entry_copy_pathname_w(ae, fullpath);
Packit Service 1d0348
	archive_entry_set_mode(ae, S_IFREG | 0755);
Packit Service 1d0348
	create_reg_file_win(ae, "Test creating a regular file"
Packit Service 1d0348
	    " with unusable characters in its file name");
Packit Service 1d0348
	archive_entry_free(ae);
Packit Service 1d0348
	free(fullpath);
Packit Service 1d0348
#endif /* _WIN32 && !__CYGWIN__ */
Packit Service 1d0348
}