2069 |
&& *s != ':' |
&& *s != ':' |
2070 |
#endif /* VMS */ |
#endif /* VMS */ |
2071 |
); s++); |
); s++); |
2072 |
if (s > p + 1) |
if (p[0] == '~' && s > p + 1) /* we've got "/~something/" */ |
2073 |
{ |
{ |
2074 |
o = (unsigned char *) alloca (s - p + 1); |
o = (unsigned char *) alloca (s - p + 1); |
2075 |
bcopy ((char *) p, o, s - p); |
bcopy ((char *) p, o, s - p); |
2080 |
/* If we have ~/ or ~user and `user' exists, discard |
/* If we have ~/ or ~user and `user' exists, discard |
2081 |
everything up to ~. But if `user' does not exist, leave |
everything up to ~. But if `user' does not exist, leave |
2082 |
~user alone, it might be a literal file name. */ |
~user alone, it might be a literal file name. */ |
2083 |
if (s == p + 1 || pw) |
if (IS_DIRECTORY_SEP (p[0]) || s == p + 1 || pw) |
2084 |
{ |
{ |
2085 |
nm = p; |
nm = p; |
2086 |
substituted = 1; |
substituted = 1; |