summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index e250571..14ba477 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2271,7 +2271,7 @@ delete(char *name)
struct stat st;
LOGCMD("delete", name);
- if (stat(name, &st) < 0) {
+ if (lstat(name, &st) < 0) {
perror_reply(550, name);
return;
}
@@ -2340,7 +2340,7 @@ renamefrom(char *name)
{
struct stat st;
- if (stat(name, &st) < 0) {
+ if (lstat(name, &st) < 0) {
perror_reply(550, name);
return ((char *)0);
}
OpenPOWER on IntegriCloud