git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07b7c86
)
fixed a segv bug when handling symlinks.
author
Andrew Tridgell
<tridge@samba.org>
Thu, 2 Dec 1999 05:50:09 +0000
(
05:50
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 2 Dec 1999 05:50:09 +0000
(
05:50
+0000)
thanks to taver@otenet.gr
generator.c
patch
|
blob
|
history
diff --git
a/generator.c
b/generator.c
index 5321d8a2546a25eabb723ce600d7ccd345c2060d..886c6723dc9a489f913ccc1fceadefcabc8fafcf 100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-234,7
+234,7
@@
void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
l = readlink(fname,lnk,MAXPATHLEN-1);
if (l > 0) {
lnk[l] = 0;
- if (strcmp(lnk,file->link) == 0) {
+ if (
file->link &&
strcmp(lnk,file->link) == 0) {
set_perms(fname,file,&st,1);
return;
}