mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 16:54:02 +00:00
getcwd() won't leave a error string in the buffer, unlike getwd().
This commit is contained in:
parent
0e425b6c47
commit
75933089af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137839
|
@ -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 a new issue