getcwd() won't leave a error string in the buffer, unlike getwd().
This commit is contained in:
parent
3aea49e013
commit
aa642fc092
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user