140 |
expand_string (&mybuf, &mybuf_size, p + 1); |
expand_string (&mybuf, &mybuf_size, p + 1); |
141 |
mybuf[p++] = name[s]; |
mybuf[p++] = name[s]; |
142 |
} |
} |
143 |
if (name[s] == '}') ++s; |
if (name[s] != '\0') ++s; |
144 |
} |
} |
145 |
else |
else |
146 |
{ |
{ |
202 |
else |
else |
203 |
error (0, 0, "%s:tilde expansion not supported on this system", |
error (0, 0, "%s:tilde expansion not supported on this system", |
204 |
file); |
file); |
205 |
return NULL; |
goto error_exit; |
206 |
#else |
#else |
207 |
struct passwd *ps; |
struct passwd *ps; |
208 |
ps = getpwnam (buf + d); |
ps = getpwnam (buf + d); |
209 |
if (ps == 0) |
if (ps == NULL) |
210 |
{ |
{ |
211 |
if (line != 0) |
if (line != 0) |
212 |
error (0, 0, "%s:%d: no such user %s", |
error (0, 0, "%s:%d: no such user %s", |
213 |
file, line, buf + d); |
file, line, buf + d); |
214 |
else |
else |
215 |
error (0, 0, "%s: no such user %s", file, buf + d); |
error (0, 0, "%s: no such user %s", file, buf + d); |
216 |
return NULL; |
goto error_exit; |
217 |
} |
} |
218 |
e = ps->pw_dir; |
e = ps->pw_dir; |
219 |
#endif |
#endif |