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
b0d791bb
Commit
b0d791bb
authored
Feb 18, 2003
by
Paul Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch from Roderick Schertler (roderick at argon.org) to ignore
non-POSIX directory mode bits that are used by AIX.
parent
3903928c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
rsync.c
rsync.c
+2
-2
rsync.h
rsync.h
+10
-3
No files found.
rsync.c
View file @
b0d791bb
...
@@ -203,9 +203,9 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
...
@@ -203,9 +203,9 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
#ifdef HAVE_CHMOD
#ifdef HAVE_CHMOD
if
(
!
S_ISLNK
(
st
->
st_mode
))
{
if
(
!
S_ISLNK
(
st
->
st_mode
))
{
if
(
st
->
st_mode
!=
file
->
mode
)
{
if
(
(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
file
->
mode
&
CHMOD_BITS
)
)
{
updated
=
1
;
updated
=
1
;
if
(
do_chmod
(
fname
,
file
->
mode
)
!=
0
)
{
if
(
do_chmod
(
fname
,
(
file
->
mode
&
CHMOD_BITS
)
)
!=
0
)
{
rprintf
(
FERROR
,
"failed to set permissions on %s : %s
\n
"
,
rprintf
(
FERROR
,
"failed to set permissions on %s : %s
\n
"
,
fname
,
strerror
(
errno
));
fname
,
strerror
(
errno
));
return
0
;
return
0
;
...
...
rsync.h
View file @
b0d791bb
...
@@ -497,6 +497,16 @@ extern int errno;
...
@@ -497,6 +497,16 @@ extern int errno;
#define S_IWUSR 0200
#define S_IWUSR 0200
#endif
#endif
#ifndef ACCESSPERMS
#define ACCESSPERMS 0777
#endif
#ifndef S_ISVTX
#define S_ISVTX 0
#endif
#define CHMOD_BITS (S_ISUID | S_ISGID | S_ISVTX | ACCESSPERMS)
#ifndef _S_IFMT
#ifndef _S_IFMT
#define _S_IFMT 0170000
#define _S_IFMT 0170000
#endif
#endif
...
@@ -560,9 +570,6 @@ extern int errno;
...
@@ -560,9 +570,6 @@ extern int errno;
#define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode) || S_ISSOCK(mode) || S_ISFIFO(mode))
#define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode) || S_ISSOCK(mode) || S_ISFIFO(mode))
#ifndef ACCESSPERMS
#define ACCESSPERMS 0777
#endif
/* Initial mask on permissions given to temporary files. Mask off setuid
/* Initial mask on permissions given to temporary files. Mask off setuid
bits and group access because of potential race-condition security
bits and group access because of potential race-condition security
holes, and mask other access because mode 707 is bizarre */
holes, and mask other access because mode 707 is bizarre */
...
...
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