a command like the following worked up to 0.63
system("/bin/su -c '/usr/bin/tmda-pending -Tb >
/tmp/pending-$userName' $userName") == 0
or die ("Error finding pending\n");
with 0.69, i get the following
from the command line
[root@server root]#/usr/bin/tmda-pending <things>
Traceback (most recent call last):
File "/usr/bin/tmda-pending", line 311, in ?
main()
File "/usr/bin/tmda-pending", line 302, in main
pretend = pretend
File "/usr/lib/python2.2/site-packages/TMDA/Pending.py", line 92, in
initQueue
os.chdir(cwd)
OSError: [Errno 13] Permission denied: '/root'
or
OSError: [Errno 13] Permission denied:
'/etc/e-smith/web/panels/user/cgi-bin'
or
OSError: [Errno 13] Permission denied:
'/home/e-smith/files/users/stephen/home/rpms/SOURCES/
** but from / will work **
"/usr/lib/python2.2/site-packages/TMDA/Pending.py"
line 92 > os.chdir(cwd)
line 92 and running a cgi from /etc/e-smith/web/panels/user/cgi-bin
causes the problem
any suggestions to fix the path problem?
i've set DATADIR to /full/pathto/user/.tmda didn't help
regards
stephen noble
"/usr/lib/python2.2/site-packages/TMDA/Pending.py"
<snip>
def initQueue(self):
"""Initialize the queue with the given parameters (see __init__)."""
self.pendingdir = os.path.join(Defaults.DATADIR, 'pending')
if not os.path.exists(self.pendingdir):
raise Errors.QueueError, 'Pending directory %s does not exist,
exiting.' % self.pendingdir
# Replace any `-' in the message list with those messages provided
# via standard input. (Since it's pointless to call it twice,
# it's safe to remove any subsequent occurrences in the list after
# processing.)
for msgid in self.msgs:
if msgid == '-':
self.wantedstdin = 1
for line in sys.stdin.readlines():
self.msgs.append(line.strip())
self.msgs.remove('-')
if not self.msgs and not self.wantedstdin:
cwd = os.getcwd()
os.chdir(self.pendingdir)
self.msgs = glob.glob('*.*.msg*')
line 92 > os.chdir(cwd)
regards
stephen noble
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users