Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I can't believe it - solaris allows unlink of a non-empty directory as
[rsync/rsync.git]
/
authenticate.c
diff --git
a/authenticate.c
b/authenticate.c
index
50c10aa
..
f87fcee
100644
(file)
--- a/
authenticate.c
+++ b/
authenticate.c
@@
-56,7
+56,7
@@
static void gen_challenge(char *addr, char *challenge)
memset(input, 0, sizeof(input));
strlcpy((char *)input, addr, 17);
memset(input, 0, sizeof(input));
strlcpy((char *)input, addr, 17);
-
gettimeofday(&tv, NULL
);
+
sys_gettimeofday(&tv
);
SIVAL(input, 16, tv.tv_sec);
SIVAL(input, 20, tv.tv_usec);
SIVAL(input, 24, getpid());
SIVAL(input, 16, tv.tv_sec);
SIVAL(input, 20, tv.tv_usec);
SIVAL(input, 24, getpid());