void-packages/srcpkgs/xbps/patches/0010-Restore-pkg-file-timestamps-while-unpacking-as-regul.patch

41 lines
1.4 KiB
Diff

From ae8ce645421962402b046cd2a34c27aa3c38609a Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sat, 21 Feb 2015 16:52:27 +0100
Subject: [PATCH] Restore pkg file timestamps while unpacking as regular user.
Requested by @dominikh.
---
NEWS | 3 +++
include/xbps_api_impl.h | 10 +++++-----
tests/xbps/xbps-create/basic_test.sh | 25 +++++++++++++++++++++++++
3 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/include/xbps_api_impl.h b/include/xbps_api_impl.h
index b177bf8..a9fb07c 100644
--- include/xbps_api_impl.h
+++ include/xbps_api_impl.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2010-2014 Juan Romero Pardines.
+ * Copyright (c) 2010-2015 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -46,10 +46,10 @@
#include "compat.h"
#define EXTRACT_FLAGS ARCHIVE_EXTRACT_SECURE_NODOTDOT | \
- ARCHIVE_EXTRACT_SECURE_SYMLINKS
-#define FEXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | \
- ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_UNLINK | \
- EXTRACT_FLAGS
+ ARCHIVE_EXTRACT_SECURE_SYMLINKS | \
+ ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_PERM | \
+ ARCHIVE_EXTRACT_UNLINK
+#define FEXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | EXTRACT_FLAGS
#ifndef __UNCONST
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
--
2.3.0