]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Accept trailing whitespace in ThisCell.
authorRuss Allbery <rra@debian.org>
Wed, 15 Nov 2006 23:31:58 +0000 (23:31 +0000)
committerRuss Allbery <rra@debian.org>
Wed, 15 Nov 2006 23:31:58 +0000 (23:31 +0000)
debian/changelog
src/auth/cellconfig.c

index 0a3fb8126997f5272c54fb842fdb9095d9b7b684..51c5ffbe8462d97c73cbac8a9d85a8a3603190a2 100644 (file)
@@ -2,6 +2,7 @@ openafs (1.4.2-3) unstable; urgency=low
 
   * No longer pass explicit cache tuning options to afsd and instead let
     OpenAFS automatically choose tuning based on the cache size.
+  * Accept trailing whitespace in ThisCell.
   * Change the documentation of afsd -shutdown to be less dire and more
     accurate.  Thanks, Daniel J. Priem.  (Closes: #394990)
   * Document (at least partially) AFS's mapping of Kerberos v5 principal
@@ -9,7 +10,7 @@ openafs (1.4.2-3) unstable; urgency=low
     J. Priem.  (Closes: #394832)
   * Document that aklog -setpag may not always work.
 
- -- Russ Allbery <rra@debian.org>  Tue,  7 Nov 2006 16:41:56 -0800
+ -- Russ Allbery <rra@debian.org>  Wed, 15 Nov 2006 15:31:28 -0800
 
 openafs (1.4.2-2) unstable; urgency=low
 
index cc757a89427588141224519755b9716a1769d200..978720163d9176a89ab3c60443c9b702887a09fc 100644 (file)
@@ -492,6 +492,10 @@ GetCellUnix(struct afsconf_dir *adir)
     p = strchr(tbuffer, '\n');
     if (p)
        *p = '\0';
+    p = tbuffer + strlen(tbuffer) - 1;
+    while (p > tbuffer && isspace(*p))
+       p--;
+    *p = '\0';
 
     adir->cellName = strdup(tbuffer);
     return 0;