Show More
@@ -314,7 +314,7 b' class channeledsystem(object):' | |||||
314 | self.channel = channel |
|
314 | self.channel = channel | |
315 |
|
315 | |||
316 | def __call__(self, cmd, environ, cwd): |
|
316 | def __call__(self, cmd, environ, cwd): | |
317 | args = [util.quotecommand(cmd), cwd or '.'] |
|
317 | args = [util.quotecommand(cmd), os.path.abspath(cwd or '.')] | |
318 | args.extend('%s=%s' % (k, v) for k, v in environ.iteritems()) |
|
318 | args.extend('%s=%s' % (k, v) for k, v in environ.iteritems()) | |
319 | data = '\0'.join(args) |
|
319 | data = '\0'.join(args) | |
320 | self.out.write(struct.pack('>cI', self.channel, len(data))) |
|
320 | self.out.write(struct.pack('>cI', self.channel, len(data))) |
General Comments 0
You need to be logged in to leave comments.
Login now