OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../etcnet/0003-fix-use-of-VARPREFIX-in-sysctl-completion-code.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 2f8d7bc5e3acf2a75cee38a2c2d295687b897547 Mon Sep 17 00:00:00 2001
  17. From: Sergey Bolshakov <sbolshakov@altlinux.org>
  18. Date: Sun, 17 Jan 2010 20:00:38 +0300
  19. Subject: [PATCH 3/4] fix use of VARPREFIX in sysctl completion code
  20. ---
  21. etc/net/scripts/ifup-common | 2 ++
  22. 1 files changed, 2 insertions(+), 0 deletions(-)
  23. diff --git a/etc/net/scripts/ifup-common b/etc/net/scripts/ifup-common
  24. index 5b85b73..3570077 100755
  25. --- a/etc/net/scripts/ifup-common
  26. +++ b/etc/net/scripts/ifup-common
  27. @@ -187,6 +187,8 @@ process_sysctl_conf()
  28. print_error "Can't autocomplete sysctl variable name '$VARNAME' in file '$SRCFILE'. Please fix"
  29. return 1
  30. esac
  31. + else
  32. + VARPREFIX=
  33. fi
  34. $SYSCTL -q -w $VARPREFIX$VARNAME=$VARVALUE
  35. done
  36. --
  37. 1.6.6.2