]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/lei
lei add-external --mirror: respect client umask
[public-inbox.git] / script / lei
index bc43779821e7bbb26026dd405505579f0dd788a0..8f6e8aacb86b67470d2dade0fdd7225cc6e7df0a 100755 (executable)
@@ -122,6 +122,8 @@ while (1) {
                $exec_cmd->(\@fds, split(/\0/, $1));
        } elsif ($buf eq '-WINCH') {
                kill($buf, @parent); # for MUA
+       } elsif ($buf eq 'umask') {
+               send($sock, 'u'.pack('V', umask), MSG_EOR) or die "send: $!"
        } elsif ($buf =~ /\Ax_it ([0-9]+)\z/) {
                $x_it_code ||= $1 + 0;
                last;