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
def97ff9
Commit
def97ff9
authored
Jan 26, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the --super option.
parent
d38772e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
options.c
options.c
+8
-2
No files found.
options.c
View file @
def97ff9
...
...
@@ -289,13 +289,14 @@ void usage(enum logcode F)
rprintf
(
F
,
" -H, --hard-links preserve hard links
\n
"
);
rprintf
(
F
,
" -K, --keep-dirlinks treat symlinked dir on receiver as dir
\n
"
);
rprintf
(
F
,
" -p, --perms preserve permissions
\n
"
);
rprintf
(
F
,
" -o, --owner preserve owner (
root
only)
\n
"
);
rprintf
(
F
,
" -o, --owner preserve owner (
super-user
only)
\n
"
);
rprintf
(
F
,
" -g, --group preserve group
\n
"
);
rprintf
(
F
,
" --devices preserve device files (
root
only)
\n
"
);
rprintf
(
F
,
" --devices preserve device files (
super-user
only)
\n
"
);
rprintf
(
F
,
" --specials preserve special files
\n
"
);
rprintf
(
F
,
" -D same as --devices --specials
\n
"
);
rprintf
(
F
,
" -t, --times preserve times
\n
"
);
rprintf
(
F
,
" -O, --omit-dir-times omit directories when preserving times
\n
"
);
rprintf
(
F
,
" --super receiver attempts super-user activities
\n
"
);
rprintf
(
F
,
" --chmod=CHMOD change destination permissions
\n
"
);
rprintf
(
F
,
" -S, --sparse handle sparse files efficiently
\n
"
);
rprintf
(
F
,
" -n, --dry-run show what would have been transferred
\n
"
);
...
...
@@ -406,6 +407,8 @@ static struct poptOption long_options[] = {
{
"no-t"
,
0
,
POPT_ARG_VAL
,
&
preserve_times
,
0
,
0
,
0
},
{
"omit-dir-times"
,
'O'
,
POPT_ARG_VAL
,
&
omit_dir_times
,
2
,
0
,
0
},
{
"modify-window"
,
0
,
POPT_ARG_INT
,
&
modify_window
,
OPT_MODIFY_WINDOW
,
0
,
0
},
{
"super"
,
0
,
POPT_ARG_VAL
,
&
am_root
,
2
,
0
,
0
},
{
"no-super"
,
0
,
POPT_ARG_VAL
,
&
am_root
,
0
,
0
,
0
},
{
"owner"
,
'o'
,
POPT_ARG_VAL
,
&
preserve_uid
,
1
,
0
,
0
},
{
"no-owner"
,
0
,
POPT_ARG_VAL
,
&
preserve_uid
,
0
,
0
,
0
},
{
"no-o"
,
0
,
POPT_ARG_VAL
,
&
preserve_uid
,
0
,
0
,
0
},
...
...
@@ -1435,6 +1438,7 @@ void server_options(char **args,int *argc)
if
(
blocking_io
==
-
1
)
blocking_io
=
0
;
/* This should always remain first on the server's command-line. */
args
[
ac
++
]
=
"--server"
;
if
(
daemon_over_rsh
)
{
...
...
@@ -1615,6 +1619,8 @@ void server_options(char **args,int *argc)
args
[
ac
++
]
=
"--force"
;
if
(
write_batch
<
0
)
args
[
ac
++
]
=
"--only-write-batch=X"
;
if
(
am_root
>
1
)
args
[
ac
++
]
=
"--super"
;
}
if
(
size_only
)
...
...
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