Commit f9530c20 authored by Robert Ricci's avatar Robert Ricci
Browse files

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'%s' and p.gid='%s' and "
" u.status='active'",
" u.status='active' and!='none'",
1, pid, gid);
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 (('%s' and p.gid='%s') or "
" and u.status='active'",
" and u.status='active' and!='none'",
1, pid, eid, pid, gid);
if (!res) {
Supports Markdown
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