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.

60 lines
2.2 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/mnemoc/ipsvd/patches/twoftpd.diff
  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. --- ./twoftpd-anon-conf.c.orig 2004-05-10 11:00:38.000000000 -0400
  20. +++ ./twoftpd-anon-conf.c 2004-05-10 11:06:23.000000000 -0400
  21. @@ -92,15 +92,15 @@
  22. "exec 2>&1\n"
  23. "umask 022\n"
  24. "exec \\\n"
  25. - "tcpserver -DRHv -llocalhost ", ip, " 21 \\\n"
  26. + "tcpsvd -vv -llocalhost ", ip, " 21 \\\n"
  27. "softlimit -m 2000000 \\\n"
  28. "envdir ", maindir, "/env \\\n",
  29. conf_bin, "/twoftpd-anon");
  30. make_file("log/run", 0755,
  31. "#!/bin/sh\n"
  32. "exec \\\n"
  33. "setuidgid ", logname, " \\\n"
  34. - "multilog t ", logdir, 0, 0, 0);
  35. + "svlogd -t ", logdir, 0, 0, 0);
  36. make_fileu("env/CHROOT", 1);
  37. make_fileu("env/GID", ftpgid);
  38. make_file("env/HOME", 0644, ftpdir, 0, 0, 0, 0, 0, 0);
  39. --- ./twoftpd-conf.c.orig 2004-05-10 11:00:38.000000000 -0400
  40. +++ ./twoftpd-conf.c 2004-05-10 11:05:28.000000000 -0400
  41. @@ -84,7 +84,7 @@
  42. "exec 2>&1\n"
  43. "umask 022\n"
  44. "exec \\\n"
  45. - "tcpserver -DRHv -llocalhost ", ip, " 21 \\\n"
  46. + "tcpsvd -vv -llocalhost ", ip, " 21 \\\n"
  47. "envdir ", maindir, "/env \\\n");
  48. obuf_put7s(&conf_out,
  49. "softlimit -m 2000000 \\\n",
  50. @@ -96,8 +96,8 @@
  51. make_file("log/run", 0755,
  52. "#!/bin/sh\n"
  53. "exec \\\n"
  54. "setuidgid ", logacct->pw_name, " \\\n"
  55. - "multilog t ", logdir, 0, 0, 0);
  56. + "svlogd -t ", logdir, 0, 0, 0);
  57. if (dochroot) make_fileu("env/CHROOT", 1);