/[cvs]/ccvs/src/expand_path.c
ViewVC logotype

Diff of /ccvs/src/expand_path.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21.6.5 by dprice, Tue Jul 12 14:07:54 2005 UTC revision 1.21.6.6 by scjones, Fri Sep 30 16:28:55 2005 UTC
# Line 140  expand_path (name, file, line) Line 140  expand_path (name, file, line)
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              {              {
# Line 202  expand_path (name, file, line) Line 202  expand_path (name, file, line)
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

Legend:
Removed from v.1.21.6.5  
changed lines
  Added in v.1.21.6.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26