Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eaf895e
)
Turned the char * args to push_dir() and pop_dir() into const char *.
author
Wayne Davison
<wayned@samba.org>
Mon, 13 Nov 2006 00:27:04 +0000
(
00:27
+0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 13 Nov 2006 00:27:04 +0000
(
00:27
+0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
fc77219
..
32dd591
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-866,7
+866,7
@@
char *sanitize_path(char *dest, const char *p, const char *rootdir, int depth,
/* Like chdir(), but it keeps track of the current directory (in the
* global "curr_dir"), and ensures that the path size doesn't overflow.
* Also cleans the path using the clean_fname() function. */
/* Like chdir(), but it keeps track of the current directory (in the
* global "curr_dir"), and ensures that the path size doesn't overflow.
* Also cleans the path using the clean_fname() function. */
-int push_dir(char *dir, int set_path_only)
+int push_dir(c
onst c
har *dir, int set_path_only)
{
static int initialised;
unsigned int len;
{
static int initialised;
unsigned int len;
@@
-913,7
+913,7
@@
int push_dir(char *dir, int set_path_only)
* Reverse a push_dir() call. You must pass in an absolute path
* that was copied from a prior value of "curr_dir".
**/
* Reverse a push_dir() call. You must pass in an absolute path
* that was copied from a prior value of "curr_dir".
**/
-int pop_dir(char *dir)
+int pop_dir(c
onst c
har *dir)
{
if (chdir(dir))
return 0;
{
if (chdir(dir))
return 0;