Files
haikuports/app-arch/cpio/patches/cpio-2.12.patchset
2015-10-02 23:36:10 +00:00

49 lines
1.2 KiB
Plaintext

From c93583f0201de8659fb138dbef6df33285ea2fee Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Tue, 14 Oct 2014 14:38:24 +0200
Subject: Search for gethostbyname in libnetwork.
diff --git a/configure.ac b/configure.ac
index c68bd44..c8f4645 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,8 @@ AC_CHECK_TYPE(gid_t, int)
AC_HEADER_STDC
AC_HEADER_DIRENT
+AC_SEARCH_LIBS(gethostbyname, [socket, network])
+
AC_CHECK_FUNCS([fchmod fchown])
# This is needed for mingw build
AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid geteuid])
--
1.8.3.4
From da1282ba6f3f7f32bdc29107cf467b693372743d Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Tue, 14 Oct 2014 14:38:58 +0200
Subject: gcc2 fixes.
diff --git a/src/makepath.c b/src/makepath.c
index 18d5b69..3244438 100644
--- a/src/makepath.c
+++ b/src/makepath.c
@@ -66,10 +66,10 @@ make_path (char *argpath,
if (stat (dirpath, &stats))
{
+ char *slash = dirpath;
tmpmode = MODE_RWX & ~ newdir_umask;
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
- char *slash = dirpath;
while (*slash == '/')
slash++;
while ((slash = strchr (slash, '/')))
--
1.8.3.4