- if (p)
- list[E_HPHONE].save = strdup(p);
- if (!list[E_HPHONE].restricted)
- (void)fprintf(fp, "Home Phone: %s\n", p ? p : "");
+ p = strdup(p ? p : "");
+ list[E_HPHONE].save = p;
+ if (!list[E_HPHONE].restricted || !uid)
+ (void)fprintf(fp, "Home Phone: %s\n", p);
+
+ bp = strdup(bp ? bp : "");
+ list[E_OTHER].save = bp;
+ if (!list[E_OTHER].restricted || !uid)
+ (void)fprintf(fp, "Other information: %s\n", bp);