/usr/share/buddycloud-server/rsm_walk.js is in buddycloud-server 0.3.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | // Generated by CoffeeScript 1.3.3
(function() {
module.exports = function(iter, cb) {
var seenOffsets, walk;
seenOffsets = {};
walk = function(offset) {
return iter(offset, function(err, lastOffset) {
if (err) {
return cb(err);
}
if (lastOffset) {
if (seenOffsets.hasOwnProperty(lastOffset)) {
return cb(new Error("RSM offset loop detected: " + offset + " already seen"));
} else {
seenOffsets[lastOffset] = true;
return walk(lastOffset);
}
} else {
return cb();
}
});
};
return walk();
};
}).call(this);
|