Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/busybox

Buildroot jacmet at uclibc.org 1 participant 1 message Feb 2, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-02-02 13:49:48 -0800 (Sat, 02 Feb 2008) New Revision: 20936

Log:
busybox: More 1.9.0 patches

Added:
trunk/buildroot/package/busybox/busybox-1.9.0-fsck.patch trunk/buildroot/package/busybox/busybox-1.9.0-mkswap.patch trunk/buildroot/package/busybox/busybox-1.9.0-msh.patch trunk/buildroot/package/busybox/busybox-1.9.0-stty.patch

Changeset:
Added: trunk/buildroot/package/busybox/busybox-1.9.0-fsck.patch
===================================================================

buildroot/package/busybox/busybox-1.9.0-fsck.patch +15 -0
@@ -0,0 +1,15 @@
+--- busybox-1.9.0/e2fsprogs/fsck.c	Fri Dec 21 22:00:31 2007
++++ busybox-1.9.0-fsck/e2fsprogs/fsck.c	Sat Feb  2 18:55:22 2008
+@@ -665,6 +665,12 @@
+ 	for (i = num_args+1; i < argc; i++)
+ 		free(argv[i]);
+ 
++	/* No pid, so don't record an instance */
++	if (pid < 0) {
++		free(inst);
++		return;
++	}
++
+ 	inst->pid = pid;
+ 	inst->prog = argv[0];
+ 	inst->type = xstrdup(type);

Added: trunk/buildroot/package/busybox/busybox-1.9.0-mkswap.patch
===================================================================

buildroot/package/busybox/busybox-1.9.0-mkswap.patch +15 -0
@@ -0,0 +1,15 @@
+--- busybox-1.9.0/util-linux/mkswap.c	Fri Dec 21 22:00:33 2007
++++ busybox-1.9.0-mkswap/util-linux/mkswap.c	Sat Feb  2 18:55:31 2008
+@@ -64,9 +64,10 @@
+ 	// Figure out how big the device is and announce our intentions.
+ 
+ 	fd = xopen(argv[1], O_RDWR);
+-	len = fdlength(fd);
++	len = lseek(fd, 0, SEEK_END);
++	lseek(fd, 0, SEEK_SET);
+ 	pagesize = getpagesize();
+-	printf("Setting up swapspace version 1, size = %"OFF_FMT"d bytes\n",
++	printf("Setting up swapspace version 1, size = %"OFF_FMT"u bytes\n",
+ 			len - pagesize);
+ 	mkswap_selinux_setcontext(fd, argv[1]);
+ 

Added: trunk/buildroot/package/busybox/busybox-1.9.0-msh.patch
===================================================================

buildroot/package/busybox/busybox-1.9.0-msh.patch +79 -0

79 lines not on this page · raw message

Added: trunk/buildroot/package/busybox/busybox-1.9.0-stty.patch
===================================================================

buildroot/package/busybox/busybox-1.9.0-stty.patch +37 -0
@@ -0,0 +1,37 @@
+--- busybox-1.9.0/coreutils/stty.c	Fri Dec 21 22:00:29 2007
++++ busybox-1.9.0-stty/coreutils/stty.c	Sat Feb  2 18:55:40 2008
+@@ -780,30 +780,14 @@
+ 
+ static const struct mode_info *find_mode(const char *name)
+ {
+-	int i = 0;
+-	const char *m = mode_name;
+-
+-	while (*m) {
+-		if (strcmp(name, m) == 0)
+-			return &mode_info[i];
+-		m += strlen(m) + 1;
+-		i++;
+-	}
+-	return NULL;
++	int i = index_in_strings(mode_name, name);
++	return i >= 0 ? &mode_info[i] : NULL;
+ }
+ 
+ static const struct control_info *find_control(const char *name)
+ {
+-	int i = 0;
+-	const char *m = mode_name;
+-
+-	while (*m) {
+-		if (strcmp(name, m) == 0)
+-			return &control_info[i];
+-		m += strlen(m) + 1;
+-		i++;
+-	}
+-	return NULL;
++	int i = index_in_strings(control_name, name);
++	return i >= 0 ? &control_info[i] : NULL;
+ }
+ 
+ enum {