Commit a811276c authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Another minor fix. If there is no GID, then copy in the pid. There is

a lurking case where GID is null. Need to find that, but in the
meantime this will keep the tmcd happy.
parent 321c2415
......@@ -2165,7 +2165,19 @@ nodeidtoexp(char *nodeid, char *pid, char *eid, char *gid)
strcpy(pid, row[0]);
strcpy(eid, row[1]);
strcpy(gid, row[2]);
* If there is no gid (yes, thats bad and a mistake), then copy
* the pid in. Also warn.
if (row[2]) {
strcpy(gid, row[2]);
else {
strcpy(gid, pid);
syslog(LOG_ERR, "nodeidtoexp: %s: No GID for %s/%s (pid/eid)!",
nodeid, pid, eid);
return 0;
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