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
88a16c8b
Commit
88a16c8b
authored
Mar 10, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't force S_IWUSR on a solo directory transfer.
parent
8030b28f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
generator.c
generator.c
+3
-3
No files found.
generator.c
View file @
88a16c8b
...
...
@@ -1299,6 +1299,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name)
int
save_ignore_non_existing
=
ignore_non_existing
;
int
save_do_progress
=
do_progress
;
int
save_make_backups
=
make_backups
;
int
dir_tweaking
=
!
(
list_only
||
local_name
||
dry_run
);
if
(
protocol_version
>=
29
)
{
itemizing
=
1
;
...
...
@@ -1360,7 +1361,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name)
* them. This is then fixed after the transfer is done. */
#ifdef HAVE_CHMOD
if
(
!
am_root
&&
S_ISDIR
(
file
->
mode
)
&&
!
(
file
->
mode
&
S_IWUSR
)
&&
!
list_only
)
{
&&
dir_tweaking
)
{
mode_t
mode
=
file
->
mode
|
S_IWUSR
;
/* user write */
char
*
fname
=
local_name
?
local_name
:
fbuf
;
if
(
do_chmod
(
fname
,
mode
)
<
0
)
{
...
...
@@ -1440,8 +1441,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name)
if
(
delete_after
&&
!
local_name
&&
flist
->
count
>
0
)
do_delete_pass
(
flist
);
if
((
need_retouch_dir_perms
||
need_retouch_dir_times
)
&&
!
list_only
&&
!
local_name
&&
!
dry_run
)
{
if
((
need_retouch_dir_perms
||
need_retouch_dir_times
)
&&
dir_tweaking
)
{
int
j
=
0
;
/* Now we need to fix any directory permissions that were
* modified during the transfer and/or re-set any tweaked
...
...
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