- Timestamp:
- Sep 23, 2002, 3:10:05 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 601a9e0
- Parents:
- bde7714
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
rf9c43ae r5a6e6b9 425 425 426 426 char *smartstripped_user(char *in) { 427 /* strip out the instance from a zsender's principal. 428 * Preserves the realm if present.429 * thecaller must free the return */427 /* strip out the instance from a zsender's principal. Preserves the 428 * realm if present. daemon.webzephyr is a special case. The 429 * caller must free the return */ 430 430 431 431 char *ptr, *realm, *out; … … 436 436 ptr=strchr(in, '.'); 437 437 if (!strchr(in, '/') && !ptr) { 438 /* no '/' and no '.' */ 438 439 return(out); 439 440 } 440 441 if (ptr && strchr(in, '@') && (ptr > strchr(in, '@'))) { 442 /* There's a '.' but it's in the realm */ 441 443 return(out); 442 444 } 445 if (!strncasecmp(in, "daemon.webzephyr", strlen("daemon.webzephyr"))) { 446 return(out); 447 } 448 443 449 444 450 /* remove the realm from ptr, but hold on to it */
Note: See TracChangeset
for help on using the changeset viewer.