]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix getgrent call in unix.groups
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 22 Jan 2010 22:55:05 +0000 (16:55 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 22 Jan 2010 22:55:05 +0000 (16:55 -0600)
basis/unix/groups/groups.factor

index a9b80002a8f7f6f258eeb83f3091c4faa1cb82ea..7c2da50c9e143dfed3236c62462960bb71533ec0 100644 (file)
@@ -83,7 +83,7 @@ M: integer user-groups ( id -- seq )
     user-name (user-groups) ;
     
 : all-groups ( -- seq )
-    [ [ unix.ffi:getgrent ] unix-system-call dup ] [ \ unix.ffi:group memory>struct group-struct>group ] produce nip ;
+    [ unix.ffi:getgrent dup ] [ \ unix.ffi:group memory>struct group-struct>group ] produce nip ;
 
 : <group-cache> ( -- assoc )
     all-groups [ [ id>> ] keep ] H{ } map>assoc ;