File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
ui/console/command_dispatcher Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ def migrate(pid, writable_dir="/tmp/")
239
239
if client . platform =~ /linux/i
240
240
socket_path = File . join ( writable_dir , Rex ::Text . rand_text_alpha_lower ( 5 + rand ( 5 ) ) )
241
241
242
- if socket_path > UNIX_PATH_MAX - 1
242
+ if socket_path . length > UNIX_PATH_MAX - 1
243
243
raise RuntimeError , "The writable dir is too long" , caller
244
244
end
245
245
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ def cmd_migrate(*args)
351
351
end
352
352
353
353
if client . platform =~ /linux/
354
- writable_dir = ( args . length >= 2 ) ? args [ 1 ] : "/tmp/"
354
+ writable_dir = ( args . length >= 2 ) ? args [ 1 ] : "/tmp/"
355
355
end
356
356
357
357
begin
@@ -395,9 +395,9 @@ def cmd_migrate(*args)
395
395
396
396
# Do this thang.
397
397
if client . platform =~ /linux/
398
- client . core . migrate ( pid )
399
- else
400
398
client . core . migrate ( pid , writable_dir )
399
+ else
400
+ client . core . migrate ( pid )
401
401
end
402
402
403
403
print_status ( "Migration completed successfully." )
You can’t perform that action at this time.
0 commit comments