diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-11-18 09:26:58 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-11-18 09:26:58 +0000 |
| commit | ac4f2391bea239960fb4d947c9899e4cd19d5062 (patch) | |
| tree | 8fe76fa724d52ab0bc7e2c4501e65cda0fda58fc /libexec/ftpd | |
| parent | b646893f0f98f3511a627e02186c857237aa2deb (diff) | |
Notes
Diffstat (limited to 'libexec/ftpd')
| -rw-r--r-- | libexec/ftpd/ftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 3b37d9a64c75..0e9651e1a006 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -2490,7 +2490,7 @@ delete(char *name) perror_reply(550, name); return; } - if ((st.st_mode&S_IFMT) == S_IFDIR) { + if (S_ISDIR(st.st_mode)) { if (rmdir(name) < 0) { perror_reply(550, name); return; |
