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
7766e673
Commit
7766e673
authored
Feb 22, 2011
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow a failure of EINVAL to mean no ACLs are available.
(If our POSIX types aren't valid, we can't handle the ACLs.)
parent
4403b133
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
acls.c
acls.c
+3
-0
sysacls.c
lib/sysacls.c
+5
-0
No files found.
acls.c
View file @
7766e673
...
...
@@ -1101,6 +1101,9 @@ int default_perms_for_dir(const char *dir)
if
(
sacl
==
NULL
)
{
/* Couldn't get an ACL. Darn. */
switch
(
errno
)
{
case
EINVAL
:
/* If SMB_ACL_TYPE_DEFAULT isn't valid, then the ACLs must be non-POSIX. */
break
;
#ifdef ENOTSUP
case
ENOTSUP
:
#endif
...
...
lib/sysacls.c
View file @
7766e673
...
...
@@ -2781,6 +2781,11 @@ int no_acl_syscall_error(int err)
return
1
;
}
#endif
if
(
err
==
EINVAL
)
{
/* If the type of SMB_ACL_TYPE_ACCESS or SMB_ACL_TYPE_DEFAULT
* isn't valid, then the ACLs must be non-POSIX. */
return
1
;
}
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