]> git.sur5r.net Git - bacula/bacula/commitdiff
Handle the old stream using the old system call just to be safe for now.
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 17 Sep 2010 11:03:05 +0000 (13:03 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 30 Sep 2010 12:34:55 +0000 (14:34 +0200)
bacula/src/filed/acl.c

index b8342bac674a53a70b5da1fd476272c5f727cc30..94b839c71d5d2e73eb78747caaa4fff7c07efee8 100644 (file)
@@ -128,6 +128,7 @@ static bacl_exit_code send_acl_stream(JCR *jcr, int stream)
 
 #if defined(HAVE_EXTENDED_ACL)
 
+#include <sys/access.h>
 #include <sys/acl.h>
 
 /**
@@ -145,6 +146,13 @@ static bacl_exit_code aix_parse_acl_streams(JCR *jcr, int stream)
 {
    switch (stream) {
    case STREAM_ACL_AIX_TEXT:
+      /**
+       * Handle the old stream using the old system call.
+       */
+      if (acl_put(jcr->last_fname, jcr->acl_data->content, 0) != 0) {
+         return bacl_exit_error;
+      }
+      return bacl_exit_ok;
    case STREAM_ACL_AIX_AIXC:
       break;
    case STREAM_ACL_AIX_NFS4: