Return to misc.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.75, 2010/01/09 23:04:13 | version 1.76, 2010/05/21 05:00:36 | ||
---|---|---|---|
|
|
||
int flag = 0; | int flag = 0; | ||
if (*cp == ':') /* Leading colon is part of file name. */ | if (*cp == ':') /* Leading colon is part of file name. */ | ||
return (0); | return NULL; | ||
if (*cp == '[') | if (*cp == '[') | ||
flag = 1; | flag = 1; | ||
|
|
||
if (*cp == ':' && !flag) | if (*cp == ':' && !flag) | ||
return (cp); | return (cp); | ||
if (*cp == '/') | if (*cp == '/') | ||
return (0); | return NULL; | ||
} | } | ||
return (0); | return NULL; | ||
} | } | ||
/* function to assist building execv() arguments */ | /* function to assist building execv() arguments */ |