Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv16166
Modified Files:
Install.py
Log Message:
Catch the rather strange circumstance of trying to install a TMDA account when
you do not have write permissions to the user's home directory. (WEIRD!)
Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Install.py 23 May 2003 22:42:10 -0000 1.14
+++ Install.py 30 May 2003 03:49:14 -0000 1.15
@@ -83,6 +83,10 @@
Return 0 on success, error code on error."""
+ if not Util.CanWrite(os.path.join(os.environ["HOME"], Archive)):
+ CgiUtil.TermError("Can't write.", "No write permissions.",
+ "create backup", CgiUtil.FileDetails("home directory",
+ os.environ["HOME"]), "Check file permissions in home directory.")
Files = []
Parents = []
for Filename in Filelist:
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
|