pts-rename-fix-20070105

FIXES 51066

fix pts rename to do the right thing
This commit is contained in:
Kevin Hildebrand 2007-01-05 18:20:08 +00:00 committed by Derrick Brashear
parent 290b05b6b6
commit b975875e79

View File

@ -681,7 +681,10 @@ pr_ChangeEntry(char *oldname, char *newname, afs_int32 *newid, char *newowner)
if (oid == ANONYMOUSID)
return PRNOENT;
}
code = ubik_PR_ChangeEntry(pruclient, 0, id, newname, oid, newid);
if (newid)
code = ubik_PR_ChangeEntry(pruclient, 0, id, newname, oid, *newid);
else
code = ubik_PR_ChangeEntry(pruclient, 0, id, newname, oid, 0);
return code;
}