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.

73 lines
2.1 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../liblockfile/glibc24.patch
  5. # Copyright (C) 2006 The T2 SDE 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. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- ./lockfile.c.orig 2006-06-15 15:54:38.000000000 +0200
  17. +++ ./lockfile.c 2006-06-15 15:57:43.000000000 +0200
  18. @@ -54,7 +54,7 @@
  19. #ifdef LIB
  20. static
  21. #endif
  22. -int eaccess(char *fn, gid_t gid, struct stat *st)
  23. +int eaccess2(char *fn, gid_t gid, struct stat *st)
  24. {
  25. struct stat tmp;
  26. uid_t uid = geteuid();
  27. @@ -96,7 +96,7 @@
  28. *p = 0;
  29. else
  30. strcpy(dir, ".");
  31. - if (eaccess(dir, egid, NULL) >= 0) {
  32. + if (eaccess2(dir, egid, NULL) >= 0) {
  33. free(dir);
  34. return 0;
  35. }
  36. @@ -111,7 +111,7 @@
  37. return 0;
  38. mailgid = st.st_gid;
  39. }
  40. - ret = eaccess(dir, mailgid, NULL) >= 0;
  41. + ret = eaccess2(dir, mailgid, NULL) >= 0;
  42. free (dir);
  43. return ret;
  44. }
  45. --- ./dotlockfile.c.orig 2006-06-15 15:57:21.000000000 +0200
  46. +++ ./dotlockfile.c 2006-06-15 15:58:16.000000000 +0200
  47. @@ -42,7 +42,7 @@
  48. extern int optind;
  49. #endif
  50. -extern int eaccess(char *, gid_t, struct stat *);
  51. +extern int eaccess2(char *, gid_t, struct stat *);
  52. /*
  53. * Sleep for an amout of time while regulary checking if
  54. @@ -252,14 +252,14 @@
  55. return L_ERROR;
  56. }
  57. gid = getgid();
  58. - if (eaccess(dir, gid, &st) < 0) {
  59. + if (eaccess2(dir, gid, &st) < 0) {
  60. if (errno == ENOENT) {
  61. enoent:
  62. if (!quiet) fprintf(stderr,
  63. "dotlockfile: %s: no such directory\n", dir);
  64. return L_TMPLOCK;
  65. }
  66. - if ((r = eaccess(dir, getegid(), &st) < 0) && errno == ENOENT)
  67. + if ((r = eaccess2(dir, getegid(), &st) < 0) && errno == ENOENT)
  68. goto enoent;
  69. if (r < 0 || !ismaillock(lockfile, pwd->pw_name)) {
  70. if (!quiet) fprintf(stderr,