mirror of the now-defunct rocklinux.org
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.

53 lines
1.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/kiss/posix-fixes.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. This is mainly needed when used with dietlibc - but also more portable
  20. and more secure.
  21. Rene Rebe <rene@exactcode.de>
  22. diff -ur kiss-0.21/src/doread.c src.kiss.-1.25906.3396530713/kiss-0.21/src/doread.c
  23. --- kiss-0.21/src/doread.c 1998-09-25 14:07:09.000000000 +0200
  24. +++ kiss-0.21/src/doread.c 2003-08-17 23:54:10.000000000 +0200
  25. @@ -17,11 +17,11 @@
  26. for (cp = s.str [1]; *cp; cp++)
  27. if (! isupper (*cp))
  28. return (warning ("variable must be in upper case"));
  29. - gets (buf);
  30. + fgets (buf, FILENAMELEN, stdin);
  31. addtoenv (s.str [1], buf);
  32. }
  33. else
  34. - gets (buf);
  35. + fgets (buf, FILENAMELEN, stdin);
  36. return (0);
  37. }
  38. diff -ur kiss-0.21/src/runcmd.c src.kiss.-1.25906.3396530713/kiss-0.21/src/runcmd.c
  39. --- kiss-0.21/src/runcmd.c 1998-09-25 14:07:10.000000000 +0200
  40. +++ kiss-0.21/src/runcmd.c 2003-08-17 23:11:35.000000000 +0200
  41. @@ -1,5 +1,7 @@
  42. #include "kiss.h"
  43. +#include <getopt.h>
  44. +
  45. /* define DEBUG_ONE_CMD to get one shot at gdb'ing the child process */
  46. /* then make a -g version of the command to see and set a trace in the code */