[hunchentoot-devel] get-gid-from-name support for SBCL

Cyrus Harmon ch-tbnl at bobobeach.com
Sat Oct 6 17:19:05 UTC 2007


The following patch implements get-gid-from-name for SBCL.  
Unfortunately, it requires SBCL 1.0.10.31 or later for sb-posix  
support for getgrnam.

Cyrus

--- ../ORIGINAL/hunchentoot-0.14.2/unix-sbcl.lisp       2007-01-01  
15:50:30.000000000 -0800
+++ unix-sbcl.lisp      2007-10-04 17:16:01.000000000 -0700
@@ -45,5 +45,4 @@

  (defun get-gid-from-name (name)
    "Returns the GID for the group named NAME."
-  (declare (ignore name))
-  (error "GET-GID-FROM-NAME not yet implemented for SBCL.  Please  
send patches..."))
+  (sb-posix:group-gid (sb-posix:getgrnam name)))





More information about the Tbnl-devel mailing list