Christian Wiese
13 years ago
3 changed files with 45 additions and 24 deletions
@ -0,0 +1,41 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch
|
||||
# Copyright (C) 2011 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
--- ebtables-v2.0.10-2/communication.c.orig 2011-11-28 00:04:02.936104275 +0100
|
||||
+++ ebtables-v2.0.10-2/communication.c 2011-11-28 00:07:17.076104276 +0100
|
||||
@@ -256,7 +256,7 @@
|
||||
|
||||
static int store_counters_in_file(char *filename, struct ebt_u_replace *repl)
|
||||
{
|
||||
- int size = repl->nentries * sizeof(struct ebt_counter), ret = 0;
|
||||
+ int size = repl->nentries * sizeof(struct ebt_counter);
|
||||
unsigned int entries_size;
|
||||
struct ebt_replace hlp;
|
||||
FILE *file;
|
||||
@@ -272,13 +272,11 @@
|
||||
sizeof(unsigned int) ||
|
||||
fseek(file, entries_size + sizeof(struct ebt_replace), SEEK_SET)) {
|
||||
ebt_print_error("File %s is corrupt", filename);
|
||||
- ret = -1;
|
||||
goto close_file;
|
||||
}
|
||||
if (fwrite(repl->counters, sizeof(char), size, file) != size) {
|
||||
ebt_print_error("Could not write everything to file %s",
|
||||
filename);
|
||||
- ret = -1;
|
||||
}
|
||||
close_file:
|
||||
fclose(file);
|
@ -1,20 +0,0 @@
|
||||
Description: Only install sysvinit script and ebtables-config when INITDIR or SYSCONFIGDIR are defined
|
||||
|
||||
--- ./Makefile.orig 2011-02-07 18:18:23.994696283 +0100
|
||||
+++ ./Makefile 2011-02-07 18:52:16.226697310 +0100
|
||||
@@ -157,9 +157,15 @@
|
||||
cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_
|
||||
install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
|
||||
cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_
|
||||
+ifdef $(INITDIR)
|
||||
+ install -d -m 0755 -o root -g root $(DESTDIR)$(INITDIR)
|
||||
install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables
|
||||
+endif
|
||||
+ifdef $(SYSCONFIGDIR)
|
||||
cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_
|
||||
+ install -d -m 0600 -o root -g root $(DESTDIR)$(SYSCONFIGDIR)
|
||||
install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config
|
||||
+endif
|
||||
rm -f ebtables-save_ ebtables.sysv_ ebtables-config_
|
||||
|
||||
$(MANDIR)/man8/ebtables.8: ebtables.8
|
Loading…
Reference in new issue