Commit f9530c20 authored by Robert Ricci's avatar Robert Ricci

Bug fix. exports_setup specifically excludes home directories of

users that aren't approved into the project (actually, the group.)
But, tmcdd was looking at whether or not the user was active. Thus,
in the unlikely case that you have a user who is active (probably
from being in another project,) but has not yet been approved into
this group, tmcd decided that their home directory should be
mounted, but exports_setup hadn't exported it.
parent e6db509a
......@@ -2036,7 +2036,7 @@ COMMAND_PROTOTYPE(domounts)
res = mydb_query("select u.uid from users as u "
"left join group_membership as p on p.uid=u.uid "
"where p.pid='%s' and p.gid='%s' and "
" u.status='active'",
" u.status='active' and p.trust!='none'",
1, pid, gid);
#else
res = mydb_query("select distinct u.uid from users as u "
......@@ -2044,7 +2044,7 @@ COMMAND_PROTOTYPE(domounts)
" on a.exp_pid='%s' and a.exp_eid='%s' "
"left join group_membership as p on p.uid=u.uid "
"where ((p.pid='%s' and p.gid='%s') or p.pid=a.pid) "
" and u.status='active'",
" and u.status='active' and p.trust!='none'",
1, pid, eid, pid, gid);
#endif
if (!res) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment