Re-add patch to fix enable -f functionallity from FreeBSD. Authored by ache:
Fix for 'enable -f' Submitted by: "Eric L. Hernes" <erich@lodgenet.com>
This commit is contained in:
parent
111231de98
commit
f41e8f6be3
16
shells/bash2/patches/patch-aa
Normal file
16
shells/bash2/patches/patch-aa
Normal file
@ -0,0 +1,16 @@
|
||||
--- builtins/enable.def~ Wed Oct 2 13:47:05 1996
|
||||
+++ builtins/enable.def Tue May 6 14:18:09 1997
|
||||
@@ -284,9 +284,10 @@
|
||||
name = list->word->word;
|
||||
|
||||
size = strlen (name);
|
||||
- struct_name = xmalloc (size + 8);
|
||||
- strcpy (struct_name, name);
|
||||
- strcpy (struct_name + size, "_struct");
|
||||
+ struct_name = xmalloc (size + 9);
|
||||
+ *struct_name = '_';
|
||||
+ strcpy (struct_name + 1, name);
|
||||
+ strcpy (struct_name + size + 1, "_struct");
|
||||
|
||||
b = (struct builtin *)dlsym (handle, struct_name);
|
||||
if (b == 0)
|
Loading…
Reference in New Issue
Block a user