]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Apply upstream fix for segfaults in pts rename. (Closes: #409184)
authorRuss Allbery <rra@debian.org>
Fri, 16 Feb 2007 04:50:15 +0000 (04:50 +0000)
committerRuss Allbery <rra@debian.org>
Fri, 16 Feb 2007 04:50:15 +0000 (04:50 +0000)
debian/changelog
src/ptserver/ptuser.c

index 59e87c2ab99d5df6a1456686928dd4a3dc907124..40c68e606ddc9035272661457de9fcfa4fb431de 100644 (file)
@@ -1,3 +1,9 @@
+openafs (1.4.2-6) unstable; urgency=low
+
+  * Apply upstream fix for segfaults in pts rename.  (Closes: #409184)
+
+ --
+
 openafs (1.4.2-5) unstable; urgency=low
 
   * Translation updates:
index 08536e57e1927043387248387b2c02060bb9f9b5..98e97f32ce7c5278006f5409effbd03bc52fadb1 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;
 }