summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2002-07-21 12:06:56 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2002-07-21 12:06:56 +0000
commit1b0e12d7477e1afc3bf65724207a25cd1527df1e (patch)
tree09b58b87ecd74d0f6b45f97c6e85bca816f4c827 /libexec
parent1b64ed3b5b007dedb324fcd6b1acc2fb6e267c35 (diff)
Notes
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 e250571ead29..14ba47766691 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);
}