]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
pts-rename-fix-20070105
authorKevin Hildebrand <kevin@umd.edu>
Fri, 5 Jan 2007 18:20:08 +0000 (18:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 5 Jan 2007 18:20:08 +0000 (18:20 +0000)
FIXES 51066

fix pts rename to do the right thing

src/ptserver/ptuser.c

index 7f9648c6b969cc4c2d5aa177bf9f56ead026a6d2..7f68647b85fc39d7f8633dbb36cf2c492c50a486 100644 (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;
 }