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
e3bdb763
Commit
e3bdb763
authored
Feb 27, 2002
by
David Dykstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cygwin doesn't have setgroups() so probe for the function in configure
and don't try to call it if it doesn't exist.
parent
93695764
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
clientserver.c
clientserver.c
+2
-0
configure.in
configure.in
+1
-1
No files found.
clientserver.c
View file @
e3bdb763
...
...
@@ -287,6 +287,7 @@ static int rsync_module(int fd, int i)
}
if
(
am_root
)
{
#ifdef HAVE_SETGROUPS
/* Get rid of any supplementary groups this process
* might have inheristed. */
if
(
setgroups
(
0
,
NULL
))
{
...
...
@@ -294,6 +295,7 @@ static int rsync_module(int fd, int i)
io_printf
(
fd
,
"@ERROR: setgroups failed
\n
"
);
return
-
1
;
}
#endif
/* XXXX: You could argue that if the daemon is started
* by a non-root user and they explicitly specify a
...
...
configure.in
View file @
e3bdb763
...
...
@@ -351,7 +351,7 @@ AC_FUNC_UTIME_NULL
AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod)
AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime)
AC_CHECK_FUNCS(memmove lchown vsnprintf snprintf asprintf setsid glob strpbrk)
AC_CHECK_FUNCS(strlcat strlcpy mtrace mallinfo)
AC_CHECK_FUNCS(strlcat strlcpy mtrace mallinfo
setgroups
)
AC_CACHE_CHECK([for working socketpair],rsync_cv_HAVE_SOCKETPAIR,[
AC_TRY_RUN([
...
...
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