r10042: add umask to upload scripts
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 28 Sep 2004 06:20:21 +0000 (06:20 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 28 Sep 2004 06:20:21 +0000 (06:20 +0000)
debian/upload.sh
os.lisp

index c90e5278fe7ec1bf71390f403864db13b1e60e16..5b8a5694cd27a173c6ea570f861efac1f56549a9 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash -e
 
-dup kmrcl -Uftp.med-info.com -D/home/ftp/kmrcl  -C"(cd /opt/apache/htdocs/kmrcl; make install)" -su $*
+dup kmrcl -Uftp.med-info.com -D/home/ftp/kmrcl  -C"(umask 022; cd /opt/apache/htdocs/kmrcl; make install)" -su $*
 
 
 
diff --git a/os.lisp b/os.lisp
index 5bbfbfa4f2fbca3ff430e88dd14c9a10df46133b..cce2a2f99fe80f7b221487d08d01ad1f2a20a3c1 100644 (file)
--- a/os.lisp
+++ b/os.lisp
@@ -153,8 +153,9 @@ returns (VALUES output-string pid)"
                    (error "Directory ~A does not exist [delete-directory-and-files]." dir))))
 
 (defun file-size (file)
-  #+allegro (let ((stat (excl.osi:stat (namestring file))))
-             (excl.osi:stat-size stat))
-  #-allegro
-  (with-open-file (in file :direction :input)
-    (file-length in)))
+  (when (probe-file file)
+    #+allegro (let ((stat (excl.osi:stat (namestring file))))
+               (excl.osi:stat-size stat))
+    #-allegro
+    (with-open-file (in file :direction :input)
+      (file-length in))))