mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-11 22:05:23 +01:00
Add bash 2.05b
This commit is contained in:
parent
e0d72a85b2
commit
c1454a5db6
12 changed files with 293 additions and 2 deletions
23
sysa/patches/bash-2.05b/tinycc.patch
Normal file
23
sysa/patches/bash-2.05b/tinycc.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
diff --git lib/sh/oslib.c lib/sh/oslib.c
|
||||
index 90d7be9..37fdf2a 100644
|
||||
--- lib/sh/oslib.c
|
||||
+++ lib/sh/oslib.c
|
||||
@@ -192,8 +192,7 @@ bzero (s, n)
|
||||
# include <sys/utsname.h>
|
||||
int
|
||||
gethostname (name, namelen)
|
||||
- char *name;
|
||||
- int namelen;
|
||||
+ char *name; int namelen;
|
||||
{
|
||||
int i;
|
||||
struct utsname ut;
|
||||
@@ -209,7 +208,7 @@ gethostname (name, namelen)
|
||||
# else /* !HAVE_UNAME */
|
||||
int
|
||||
gethostname (name, namelen)
|
||||
- int name, namelen;
|
||||
+ char* name; int namelen;
|
||||
{
|
||||
strncpy (name, "unknown", namelen);
|
||||
name[namelen] = '\0';
|
||||
Loading…
Add table
Add a link
Reference in a new issue