From b975875e79a2ba84ef3faaec109b8db046ee5326 Mon Sep 17 00:00:00 2001 From: Kevin Hildebrand Date: Fri, 5 Jan 2007 18:20:08 +0000 Subject: [PATCH] pts-rename-fix-20070105 FIXES 51066 fix pts rename to do the right thing --- src/ptserver/ptuser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ptserver/ptuser.c b/src/ptserver/ptuser.c index 7f9648c6b9..7f68647b85 100644 --- a/src/ptserver/ptuser.c +++ b/src/ptserver/ptuser.c @@ -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; }