]> gitweb.factorcode.org Git - factor.git/commitdiff
io.files.info.unix.linux: sometimes /etc/mtab isn't properly formatted (found on...
authorPhilipp Brüschweiler <blei42@gmail.com>
Sun, 1 Aug 2010 12:00:03 +0000 (14:00 +0200)
committerPhilipp Brüschweiler <blei42@gmail.com>
Sun, 1 Aug 2010 12:00:03 +0000 (14:00 +0200)
basis/io/files/info/unix/linux/linux.factor

index 8ec5753e1185d8b89b5308db9c2667bb3187bc16..aca23d834746e1898846231ecd6647df615e6195 100644 (file)
@@ -51,8 +51,8 @@ frequency pass-number ;
         [ second >>mount-point ]
         [ third >>type ]
         [ fourth <string-reader> csv first >>options ]
-        [ 4 swap nth >>frequency ]
-        [ 5 swap nth >>pass-number ]
+        [ 4 swap ?nth [ 0 ] unless* >>frequency ]
+        [ 5 swap ?nth [ 0 ] unless* >>pass-number ]
     } cleave ;
 
 : parse-mtab ( -- array )