CVS: tmda-cgi ChangeLog,1.57,1.58 Install.py,1.25,1.26

Gre7g Luterman <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv21106

Modified Files:
	ChangeLog Install.py 
Log Message:
Before installing, check to see if we have write permission to home directory.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- ChangeLog	21 Aug 2003 03:37:28 -0000	1.57
+++ ChangeLog	21 Aug 2003 03:46:50 -0000	1.58
@@ -1,5 +1,8 @@
 2003-08-20  Gre7g Luterman  <[email protected]>
 
+	* Before installing, check to see if we have write permission to home
+	  directory.
+
 	* Modified install skeleton so it defines HOSTNAME.
 
 	* Changed umask before and after writing session file in /tmp so that

Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- Install.py	18 Aug 2003 23:17:07 -0000	1.25
+++ Install.py	21 Aug 2003 03:46:50 -0000	1.26
@@ -665,6 +665,10 @@
   elif Form["cmd"].value == "faq":
     TemplateFN = "faq.html"
   elif Form["cmd"].value == "install":
+    if not Util.CanWrite(os.environ["HOME"]):
+      CgiUtil.TermError("Can't write to home dir.", "No write permissions.",
+        "installing", CgiUtil.FileDetails("home directory",
+        os.environ["HOME"]), "Check file permissions in home directory.")
     Install()  # Does not return.
   elif Form["cmd"].value == "restore":
     Restore()  # Does not return.

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.