Changes to compile under gnu-win32, from Marcus Daniels:
authorJim Blandy <jimb@red-bean.com>
Tue, 24 Jun 1997 01:44:58 +0000 (01:44 +0000)
committerJim Blandy <jimb@red-bean.com>
Tue, 24 Jun 1997 01:44:58 +0000 (01:44 +0000)
* boot-9.scm (load-user-init): If HOME is unset, provide
a default of /.

ice-9/boot-9.scm

index eb7b656..0b8e755 100644 (file)
                 (if (not (eq? (stat:type stats) 'directory))
                     path)))
             (lambda dummy #f))))
-  (let ((path (or (has-init? (getenv "HOME"))
-                 (has-init? (passwd:dir (getpw (getuid)))))))
+  (let ((path (or (has-init? (or (getenv "HOME") "/"))
+                  (has-init? (passwd:dir (getpw (getuid)))))))
     (if path (primitive-load path))))
 
 \f