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
30c041f9
Commit
30c041f9
authored
Sep 24, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the errors concerning the secrets file to output with FLOG
instead of FERROR.
parent
be7cf822
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
authenticate.c
authenticate.c
+4
-4
No files found.
authenticate.c
View file @
30c041f9
...
...
@@ -87,19 +87,19 @@ static int get_secret(int module, char *user, char *secret, int len)
return
0
;
if
(
do_stat
(
fname
,
&
st
)
==
-
1
)
{
rsyserr
(
F
ERROR
,
errno
,
"stat(%s)"
,
fname
);
rsyserr
(
F
LOG
,
errno
,
"stat(%s)"
,
fname
);
ok
=
0
;
}
else
if
(
lp_strict_modes
(
module
))
{
if
((
st
.
st_mode
&
06
)
!=
0
)
{
rprintf
(
F
ERROR
,
"secrets file must not be other-accessible (see strict modes option)
\n
"
);
rprintf
(
F
LOG
,
"secrets file must not be other-accessible (see strict modes option)
\n
"
);
ok
=
0
;
}
else
if
(
am_root
&&
(
st
.
st_uid
!=
0
))
{
rprintf
(
F
ERROR
,
"secrets file must be owned by root when running as root (see strict modes)
\n
"
);
rprintf
(
F
LOG
,
"secrets file must be owned by root when running as root (see strict modes)
\n
"
);
ok
=
0
;
}
}
if
(
!
ok
)
{
rprintf
(
F
ERROR
,
"continuing without secrets file
\n
"
);
rprintf
(
F
LOG
,
"continuing without secrets file
\n
"
);
close
(
fd
);
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