Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
87531e63
Commit
87531e63
authored
Nov 30, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of some compiler warnings in the AIX sysacls code.
parent
eb67a690
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
sysacls.c
lib/sysacls.c
+13
-4
No files found.
lib/sysacls.c
View file @
87531e63
...
@@ -1735,6 +1735,13 @@ int sys_acl_get_entry( SMB_ACL_T theacl, int entry_id, SMB_ACL_ENTRY_T *entry_p)
...
@@ -1735,6 +1735,13 @@ int sys_acl_get_entry( SMB_ACL_T theacl, int entry_id, SMB_ACL_ENTRY_T *entry_p)
struct
new_acl_entry
*
entry
;
struct
new_acl_entry
*
entry
;
int
keep_going
;
int
keep_going
;
if
(
entry_id
==
SMB_ACL_FIRST_ENTRY
)
theacl
->
count
=
0
;
else
if
(
entry_id
!=
SMB_ACL_NEXT_ENTRY
)
{
errno
=
EINVAL
;
return
-
1
;
}
DEBUG
(
10
,(
"This is the count: %d
\n
"
,
theacl
->
count
));
DEBUG
(
10
,(
"This is the count: %d
\n
"
,
theacl
->
count
));
/* Check if count was previously set to -1. *
/* Check if count was previously set to -1. *
...
@@ -1804,7 +1811,6 @@ SMB_ACL_T sys_acl_get_file( const char *path_p, SMB_ACL_TYPE_T type)
...
@@ -1804,7 +1811,6 @@ SMB_ACL_T sys_acl_get_file( const char *path_p, SMB_ACL_TYPE_T type)
struct
acl_entry_link
*
acl_entry_link_head
;
struct
acl_entry_link
*
acl_entry_link_head
;
int
i
;
int
i
;
int
rc
=
0
;
int
rc
=
0
;
uid_t
user_id
;
/* AIX has no DEFAULT */
/* AIX has no DEFAULT */
if
(
type
==
SMB_ACL_TYPE_DEFAULT
)
{
if
(
type
==
SMB_ACL_TYPE_DEFAULT
)
{
...
@@ -2025,7 +2031,6 @@ SMB_ACL_T sys_acl_get_fd(int fd)
...
@@ -2025,7 +2031,6 @@ SMB_ACL_T sys_acl_get_fd(int fd)
struct acl_entry_link *acl_entry_link_head;
struct acl_entry_link *acl_entry_link_head;
int i;
int i;
int rc = 0;
int rc = 0;
uid_t user_id;
/* Get the acl using fstatacl */
/* Get the acl using fstatacl */
...
@@ -2255,6 +2260,11 @@ SMB_ACL_T sys_acl_init( int count)
...
@@ -2255,6 +2260,11 @@ SMB_ACL_T sys_acl_init( int count)
{
{
struct
acl_entry_link
*
theacl
=
NULL
;
struct
acl_entry_link
*
theacl
=
NULL
;
if
(
count
<
0
)
{
errno
=
EINVAL
;
return
NULL
;
}
DEBUG
(
10
,(
"Entering sys_acl_init
\n
"
));
DEBUG
(
10
,(
"Entering sys_acl_init
\n
"
));
theacl
=
SMB_MALLOC_P
(
struct
acl_entry_link
);
theacl
=
SMB_MALLOC_P
(
struct
acl_entry_link
);
...
@@ -2373,7 +2383,6 @@ int sys_acl_set_file( const char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl
...
@@ -2373,7 +2383,6 @@ int sys_acl_set_file( const char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl
struct
acl_entry
*
acl_entry
=
NULL
;
struct
acl_entry
*
acl_entry
=
NULL
;
struct
ace_id
*
ace_id
=
NULL
;
struct
ace_id
*
ace_id
=
NULL
;
uint
id_type
;
uint
id_type
;
uint
ace_access
;
uint
user_id
;
uint
user_id
;
uint
acl_length
;
uint
acl_length
;
uint
rc
;
uint
rc
;
...
@@ -2551,7 +2560,7 @@ int sys_acl_set_fd( int fd, SMB_ACL_T theacl)
...
@@ -2551,7 +2560,7 @@ int sys_acl_set_fd( int fd, SMB_ACL_T theacl)
}
}
#endif
#endif
int
sys_acl_delete_def_file
(
const
char
*
name
)
int
sys_acl_delete_def_file
(
UNUSED
(
const
char
*
name
)
)
{
{
/* AIX has no default ACL */
/* AIX has no default ACL */
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment