projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
44eeecd
)
die on inter-slice send
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 12 Dec 2011 19:53:21 +0000
(20:53 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 12 Dec 2011 19:53:21 +0000
(20:53 +0100)
lib/CloudStore/API.pm
patch
|
blob
|
history
diff --git
a/lib/CloudStore/API.pm
b/lib/CloudStore/API.pm
index
689c8ba
..
993fa30
100644
(file)
--- a/
lib/CloudStore/API.pm
+++ b/
lib/CloudStore/API.pm
@@
-152,6
+152,7
@@
sub send_file {
my ( $self, $f_uid,$f_path, $t_uid,$t_path ) = @_;
my $f = $self->user_info($f_uid);
+ die "FIXME not on current slice" if $f->{dir} !~ m/^$self->{SLICE}/;
my $t = $self->user_info($t_uid);
my $f_full = "$f->{dir}/$f_path";