q# <[EMAIL PROTECTED]> wrote:

> As you can see, targets CRC, NEWC, ODC, BIN produce correct archives,
> but USTAR and TAR not.

Thank you. The following patch fixes it:

Index: src/util.c
@@ -1273,7 +1272,7 @@ cpio_safer_name_suffix (char *name, bool
                        bool strip_leading_dots)
 {
   char *p = safer_name_suffix (name, link_target, absolute_names);
-  if (strip_leading_dots)
+  if (strip_leading_dots && strcmp (p, "./"))
     /* strip leading `./' from the filename.  */
     while (*p == '.' && *(p + 1) == '/')
       {

Regards,
Sergey


_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio

Reply via email to