Commits

Kaspar Schiess committed e590358

. escaping the pool name

  • Participants
  • Parent commits 48aa2ec

Comments (0)

Files changed (1)

File lib/zfs/dataset.rb

   # Raw command 'zfs', args are passed as command line arguments. 
   # 
   def zfs(*args)
-    arguments = args.map { |e| Shellwords.escape(e) }.join(' ')
+    arguments = args.join(' ')
     `sudo /sbin/zfs #{arguments}`
   end
   
   def list(dataset)
-    zfs 'list', %w(-t all -rH -oname), dataset
+    zfs 'list', %w(-rH -oname -tall), Shellwords.escape(dataset)
   end
 end