CVS: tmda/TMDA Util.py,1.116,1.117
"Jason R. Mastaler" <[email protected]> Fri, 05 Mar 2004 11:26:37 -0800
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10882/TMDA
Modified Files:
Util.py
Log Message:
new function that i might use later
Index: Util.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Util.py,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -r1.116 -r1.117
--- Util.py 2 Mar 2004 02:57:27 -0000 1.116
+++ Util.py 5 Mar 2004 19:26:35 -0000 1.117
@@ -125,6 +125,13 @@
return statinfo[stat.ST_UID]
+def issticky(path):
+ """Return True if the sticky bit is set on path. Generally only
+ appropriate for directories."""
+ statinfo = os.stat(path)
+ return statinfo[stat.ST_MODE] & stat.S_ISVTX
+
+
def getvdomainprepend(address, vdomainsfile):
ret_prepend = ''
if os.path.exists(vdomainsfile):