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
6fe05820
Commit
6fe05820
authored
Feb 04, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use MY_UID() instead of getuid().
parent
670d8abf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
clientserver.c
clientserver.c
+2
-2
main.c
main.c
+1
-1
No files found.
clientserver.c
View file @
6fe05820
...
...
@@ -266,7 +266,7 @@ static int rsync_module(int f_in, int f_out, int i)
module_id
=
i
;
am_root
=
(
getuid
()
==
0
);
am_root
=
(
MY_UID
()
==
0
);
if
(
am_root
)
{
p
=
lp_uid
(
i
);
...
...
@@ -383,7 +383,7 @@ static int rsync_module(int f_in, int f_out, int i)
return
-
1
;
}
am_root
=
(
getuid
()
==
0
);
am_root
=
(
MY_UID
()
==
0
);
}
io_printf
(
f_out
,
"@RSYNCD: OK
\n
"
);
...
...
main.c
View file @
6fe05820
...
...
@@ -979,7 +979,7 @@ int main(int argc,char *argv[])
#endif
/* def MAINTAINER_MODE */
starttime
=
time
(
NULL
);
am_root
=
(
getuid
()
==
0
);
am_root
=
(
MY_UID
()
==
0
);
memset
(
&
stats
,
0
,
sizeof
(
stats
));
...
...
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