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.

48 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../cifs-utils/cifs-utils-6.0-0001-upstream-21b5bdc.patch
  5. # Copyright (C) 2013 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 21b5bdcb354bc113473347af5e4995fae2285b58 Mon Sep 17 00:00:00 2001
  17. From: Peng Haitao <penght@cn.fujitsu.com>
  18. Date: Fri, 12 Apr 2013 16:58:49 +0800
  19. Subject: [PATCH] setcifsacl.c: fix a bug of goto setcifsacl_facenum_ret
  20. setcifsacl_facenum_ret: is called only if attrlen is equal to -1.
  21. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
  22. ---
  23. setcifsacl.c | 5 +++--
  24. 1 files changed, 3 insertions(+), 2 deletions(-)
  25. diff --git a/setcifsacl.c b/setcifsacl.c
  26. index 67dd29c..4b38459 100644
  27. --- a/setcifsacl.c
  28. +++ b/setcifsacl.c
  29. @@ -822,9 +822,10 @@ cifsacl:
  30. goto setcifsacl_action_ret;
  31. attrlen = setxattr(filename, ATTRNAME, ntsdptr, bufsize, 0);
  32. - if (attrlen == -1)
  33. + if (attrlen == -1) {
  34. printf("%s: setxattr error: %s\n", __func__, strerror(errno));
  35. - goto setcifsacl_facenum_ret;
  36. + goto setcifsacl_facenum_ret;
  37. + }
  38. exit_plugin(plugin_handle);
  39. return 0;
  40. --
  41. 1.7.0.4