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.

51 lines
1.8 KiB

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