From d5071c95dc3a4f8db67901efc8cb7ec2039b3eff Mon Sep 17 00:00:00 2001
From: Alejandro Mery <amery@opensde.org>
Date: Sat, 24 Mar 2007 15:03:55 +0000
Subject: [PATCH] 	* fixed cpio symlinks support - close #266

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20546 10447126-35f2-4685-b0cf-6dd780d3921f
---
 archiver/cpio/fix_symlinks.patch | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 archiver/cpio/fix_symlinks.patch

diff --git a/archiver/cpio/fix_symlinks.patch b/archiver/cpio/fix_symlinks.patch
new file mode 100644
index 000000000..815fc14a5
--- /dev/null
+++ b/archiver/cpio/fix_symlinks.patch
@@ -0,0 +1,31 @@
+# --- SDE-COPYRIGHT-NOTE-BEGIN ---
+# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
+# 
+# Filename: package/.../cpio/fix_symlinks.patch
+# Copyright (C) 2007 The OpenSDE Project
+# 
+# More information can be found in the files COPYING and README.
+# 
+# This patch file is dual-licensed. It is available under the license the
+# patched project is licensed under, as long as it is an OpenSource license
+# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
+# of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+# --- SDE-COPYRIGHT-NOTE-END ---
+
+===================================================================
+RCS file: /sources/cpio/cpio/src/copyout.c,v
+retrieving revision 1.19
+retrieving revision 1.20
+diff -u -r1.19 -r1.20
+--- cpio/src/copyout.c	2006/09/27 09:28:50	1.19
++++ cpio/src/copyout.c	2006/10/24 10:48:04	1.20
+@@ -806,6 +806,7 @@
+ 		    free (link_name);
+ 		    continue;
+ 		  }
++		link_name[link_size] = 0;
+ 		cpio_safer_name_suffix (link_name, false,
+ 					!no_abs_paths_flag, true);
+ 		link_size = strlen (link_name);