Subject: Using of initialised variable inside getfacl.c
Package: acl
Version: 2.2.49-4.
Severity: normal

Just propose a patch to show the problem. Thank you.

--- acl-2.2.49.orig/getfacl/getfacl.c   2010-12-22 16:04:28.000000000 +0200
+++ acl-2.2.49/getfacl/getfacl.c        2010-12-22 16:05:45.000000000 +0200
@@ -377,6 +377,8 @@
                        show_line(stream, NULL, NULL, NULL, NULL,
                                  &dacl_names, dacl, &dacl_ent, dacl_mask);
                        continue;
+               } else if (!dacl && !acl) {
+                       return -1;
                } else {
                        if (acl_tag == ACL_USER || acl_tag == ACL_GROUP) {
                                id_t  *acl_id_p = NULL, *dacl_id_p = NULL;




-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply via email to