Cleanup patch after "struct stat_ex"
authorVolker Lendecke <vl@samba.org>
Sat, 25 Jul 2009 17:10:55 +0000 (13:10 -0400)
committerVolker Lendecke <vl@samba.org>
Sat, 25 Jul 2009 17:12:06 +0000 (13:12 -0400)
source3/modules/vfs_solarisacl.c

index 6a174807b69c9c608d26722e3d3dec1f9dcb025c..397a67496765f7c75fc9bf0bbde5eee53ab23f63 100644 (file)
@@ -137,7 +137,7 @@ int solarisacl_sys_acl_set_file(vfs_handle_struct *handle,
                                SMB_ACL_T theacl)
 {
        int ret = -1;
-       struct stat s;
+       struct stat_ex s;
        SOLARIS_ACL_T solaris_acl = NULL;
        int count;
        
@@ -169,7 +169,7 @@ int solarisacl_sys_acl_set_file(vfs_handle_struct *handle,
                DEBUG(10, ("Error in stat call: %s\n", strerror(errno)));
                goto done;
        }
-       if (S_ISDIR(s.st_mode)) {
+       if (S_ISDIR(s.st_ex_mode)) {
                SOLARIS_ACL_T other_acl; 
                int other_count;
                SMB_ACL_TYPE_T other_type;