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
8e7f3107
Commit
8e7f3107
authored
Dec 14, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid -u option to id since solaris doesn't support it.
parent
c2dd3ec3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
chown.test
testsuite/chown.test
+1
-1
daemon.test
testsuite/daemon.test
+1
-1
devices.test
testsuite/devices.test
+1
-1
rsync.fns
testsuite/rsync.fns
+5
-1
No files found.
testsuite/chown.test
View file @
8e7f3107
...
...
@@ -37,7 +37,7 @@ case $0 in
;;
*
)
RSYNC
=
"
$RSYNC
--super"
case
`
id -u
`
in
case
`
get_testuid
`
in
''
)
;;
# If "id" failed, try to continue...
0
)
;;
*
)
if
[
-
f
/
usr
/
bin
/
fakeroot
];
then
...
...
testsuite/daemon.test
View file @
8e7f3107
...
...
@@ -42,7 +42,7 @@ cd "$scratchdir"
ln
-
s
test
-
rsyncd
.
conf
rsyncd
.
conf
confopt
=
''
case
`
id -u
`
in
case
`
get_testuid
`
in
0
)
# Root needs to specify the config file, or it uses /etc/rsyncd.conf.
echo
"Forcing --config=
$conf
"
...
...
testsuite/devices.test
View file @
8e7f3107
...
...
@@ -51,7 +51,7 @@ case $0 in
esac
;;
*
)
case
`
id -u
`
in
case
`
get_testuid
`
in
''
)
;;
# If "id" failed, try to continue...
0
)
;;
*
)
if
[
-
f
/
usr
/
bin
/
fakeroot
];
then
...
...
testsuite/rsync.fns
View file @
8e7f3107
...
...
@@ -99,6 +99,10 @@ rsync_ls_lR() {
find
"
$@
"
-print
|
sort
|
sed
's/ /\\ /g'
| xargs
"
$TOOLDIR
/tls"
$TLS_ARGS
}
get_testuid
()
{
id
2>/dev/null |
sed
's/^[^0-9]*\([0-9][0-9]*\).*/\1/'
}
check_perms
()
{
perms
=
`
"
$TOOLDIR
/tls"
"
$1
"
|
sed
's/^[-d]\(.........\).*/\1/'
`
if
test
$perms
=
$2
;
then
...
...
@@ -258,7 +262,7 @@ build_rsyncd_conf() {
uid_setting
=
'uid = 0'
gid_setting
=
'gid = 0'
case
`
id
-u
`
in
case
`
get_testuid
`
in
0
)
;;
*
)
# Non-root cannot specify uid & gid settings
...
...
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