From: Russ Allbery Date: Fri, 16 Feb 2007 04:50:15 +0000 (+0000) Subject: * Apply upstream fix for segfaults in pts rename. (Closes: #409184) X-Git-Tag: debian/1.4.2-6~5 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=95ff2aa617c23dc5b7ab08d12fc51a7cfcaf012e;p=packages%2Fo%2Fopenafs.git * Apply upstream fix for segfaults in pts rename. (Closes: #409184) --- diff --git a/debian/changelog b/debian/changelog index 59e87c2ab..40c68e606 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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: diff --git a/src/ptserver/ptuser.c b/src/ptserver/ptuser.c index 08536e57e..98e97f32c 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; }