- use stricted permissions for saved files and created userdirs. Fixes
bug #544 git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@44 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
parent
b07ba9ae83
commit
90da7fe57f
4
NEWS
4
NEWS
|
@ -111,4 +111,6 @@
|
|||
* core: cosmetical code improvements to make old gcc-2.95 more happy
|
||||
* scripts: fixed remote inquiry: mixed new and old messages sometimes
|
||||
* core: fixed quite some problems when doing "make install" to an arbitrary
|
||||
prefix, thanks to Achim Bohnet for pointing me to these
|
||||
prefix, thanks to Achim Bohnet for pointing me to these
|
||||
* scripts: stricter permissions of received files and dirs, thx to Achim Bohnet
|
||||
this fixes bug #544
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# ---------------------------------------------------
|
||||
# copyright : (C) 2002 by Gernot Hillier
|
||||
# email : gernot@hillier.de
|
||||
# version : $Revision: 1.1 $
|
||||
# version : $Revision: 1.2 $
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -153,6 +153,9 @@ for i in args:
|
|||
cs_helpers.writeDescription(newname,"dialstring=\""+dialstring+"\"\n"
|
||||
+"starttime=\""+time.ctime()+"\"\ntries=\"0\"\n"
|
||||
+"user=\""+user+"\"\n")
|
||||
os.chmod(newname,0600)
|
||||
os.chmod(newname[:-3]+"txt",0600)
|
||||
|
||||
print i,"successful enqueued as",newname,"for",dialstring
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# ---------------------------------------------
|
||||
# copyright : (C) 2002 by Gernot Hillier
|
||||
# email : gernot@hillier.de
|
||||
# version : $Revision: 1.3 $
|
||||
# version : $Revision: 1.4 $
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ def idle(capi):
|
|||
udir=config.get("GLOBAL","fax_user_dir")+user+"/"
|
||||
sendq=udir+"sendq/"
|
||||
if (not os.access(udir,os.F_OK)):
|
||||
os.mkdir(udir)
|
||||
os.mkdir(udir,0700)
|
||||
os.chown(udir,userdata[2],userdata[3])
|
||||
if (not os.access(sendq,os.F_OK)):
|
||||
os.mkdir(sendq)
|
||||
os.mkdir(sendq,0700)
|
||||
os.chown(sendq,userdata[2],userdata[3])
|
||||
|
||||
files=os.listdir(sendq)
|
||||
|
@ -136,6 +136,10 @@ def movejob(job,olddir,newdir,user):
|
|||
# History:
|
||||
#
|
||||
# $Log: idle.py,v $
|
||||
# Revision 1.4 2003/03/13 11:09:58 gernot
|
||||
# - use stricted permissions for saved files and created userdirs. Fixes
|
||||
# bug #544
|
||||
#
|
||||
# Revision 1.3 2003/03/09 11:48:10 gernot
|
||||
# - removed wrong unlock operation (lock not acquired at this moment!)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue