getcwd() won't leave a error string in the buffer, unlike getwd().

This commit is contained in:
yar 2004-11-18 00:14:09 +00:00
parent 3aea49e013
commit aa642fc092

View File

@ -2554,7 +2554,7 @@ pwd(void)
char *s, path[MAXPATHLEN + 1];
if (getcwd(path, sizeof(path)) == NULL)
reply(550, "%s.", path);
perror_reply(550, "Get current directory");
else {
if ((s = doublequote(path)) == NULL)
fatalerror("Ran out of memory.");