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
08a740ff
Commit
08a740ff
authored
Aug 15, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix casts when some variables are printed out.
parent
b67381d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
+17
-16
batch.c
batch.c
+10
-10
clientserver.c
clientserver.c
+2
-2
flist.c
flist.c
+2
-2
main.c
main.c
+3
-2
No files found.
batch.c
View file @
08a740ff
/*
/* -*- c-file-style: "linux" -*-
Weiss 1/1999
Batch utilities
Batch utilities
for rsync.
*/
...
...
@@ -379,7 +380,6 @@ void write_batch_csum_info(int *flist_entry, int flist_count, struct sum_struct
{
int
i
;
int
int_zero
=
0
;
extern
int
block_size
;
extern
int
csum_length
;
fdb_open
=
1
;
...
...
@@ -545,15 +545,15 @@ void show_flist(int index, struct file_struct **fptr)
int
i
;
for
(
i
=
0
;
i
<
index
;
i
++
)
{
rprintf
(
FINFO
,
"flist->flags=%
x
\n
"
,
fptr
[
i
]
->
flags
);
rprintf
(
FINFO
,
"flist->modtime=%
x
\n
"
,
fptr
[
i
]
->
modtime
);
rprintf
(
FINFO
,
"flist->length=%x
\n
"
,
fptr
[
i
]
->
length
);
rprintf
(
FINFO
,
"flist->mode=%x
\n
"
,
fptr
[
i
]
->
mode
);
rprintf
(
FINFO
,
"flist->basename=%s
\n
"
,
fptr
[
i
]
->
basename
);
rprintf
(
FINFO
,
"flist->flags=%#
x
\n
"
,
fptr
[
i
]
->
flags
);
rprintf
(
FINFO
,
"flist->modtime=%#
x
\n
"
,
fptr
[
i
]
->
modtime
);
rprintf
(
FINFO
,
"flist->length=%.0f
\n
"
,
(
double
)
fptr
[
i
]
->
length
);
rprintf
(
FINFO
,
"flist->mode=%#o
\n
"
,
(
int
)
fptr
[
i
]
->
mode
);
rprintf
(
FINFO
,
"flist->basename=%s
\n
"
,
fptr
[
i
]
->
basename
);
if
(
fptr
[
i
]
->
dirname
)
rprintf
(
FINFO
,
"flist->dirname=%s
\n
"
,
fptr
[
i
]
->
dirname
);
rprintf
(
FINFO
,
"flist->dirname=%s
\n
"
,
fptr
[
i
]
->
dirname
);
if
(
fptr
[
i
]
->
basedir
)
rprintf
(
FINFO
,
"flist->basedir=%s
\n
"
,
fptr
[
i
]
->
basedir
);
rprintf
(
FINFO
,
"flist->basedir=%s
\n
"
,
fptr
[
i
]
->
basedir
);
}
}
...
...
clientserver.c
View file @
08a740ff
...
...
@@ -261,13 +261,13 @@ static int rsync_module(int fd, int i)
if
(
am_root
)
{
if
(
setgid
(
gid
))
{
rsyserr
(
FERROR
,
errno
,
"setgid %d failed"
,
gid
);
rsyserr
(
FERROR
,
errno
,
"setgid %d failed"
,
(
int
)
gid
);
io_printf
(
fd
,
"@ERROR: setgid failed
\n
"
);
return
-
1
;
}
if
(
setuid
(
uid
))
{
rsyserr
(
FERROR
,
errno
,
"setuid %d failed"
,
uid
);
rsyserr
(
FERROR
,
errno
,
"setuid %d failed"
,
(
int
)
uid
);
io_printf
(
fd
,
"@ERROR: setuid failed
\n
"
);
return
-
1
;
}
...
...
flist.c
View file @
08a740ff
...
...
@@ -1104,10 +1104,10 @@ static void clean_flist(struct file_list *flist, int strip_root)
for
(
i
=
0
;
i
<
flist
->
count
;
i
++
)
{
rprintf
(
FINFO
,
"[%d] i=%d %s %s mode=0%o len=%.0f
\n
"
,
getpid
(),
i
,
(
int
)
getpid
(),
i
,
NS
(
flist
->
files
[
i
]
->
dirname
),
NS
(
flist
->
files
[
i
]
->
basename
),
flist
->
files
[
i
]
->
mode
,
(
int
)
flist
->
files
[
i
]
->
mode
,
(
double
)
flist
->
files
[
i
]
->
length
);
}
}
...
...
main.c
View file @
08a740ff
...
...
@@ -2,6 +2,7 @@
Copyright (C) 1996-2001 by Andrew Tridgell <tridge@samba.org>
Copyright (C) Paul Mackerras 1996
Copyright (C) 2001 by Martin Pool <mbp@samba.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -528,7 +529,7 @@ int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[])
}
if
(
pid
!=
-
1
)
{
if
(
verbose
>
3
)
rprintf
(
FINFO
,
"client_run waiting on %d
\n
"
,
pid
);
rprintf
(
FINFO
,
"client_run waiting on %d
\n
"
,
(
int
)
pid
);
io_flush
();
wait_process
(
pid
,
&
status
);
}
...
...
@@ -558,7 +559,7 @@ int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[])
if
(
pid
!=
-
1
)
{
if
(
verbose
>
3
)
rprintf
(
FINFO
,
"client_run2 waiting on %d
\n
"
,
pid
);
rprintf
(
FINFO
,
"client_run2 waiting on %d
\n
"
,
(
int
)
pid
);
io_flush
();
wait_process
(
pid
,
&
status
);
}
...
...
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