summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-11-18 09:26:58 +0000
committeryar <yar@FreeBSD.org>2004-11-18 09:26:58 +0000
commit6cd7428b1336c7f507e72507e5ddb09a2ae2aeba (patch)
tree8fe76fa724d52ab0bc7e2c4501e65cda0fda58fc /libexec
parent9caab2e84389f65b9ff83b89b6b9842c315c524b (diff)
downloadFreeBSD-src-6cd7428b1336c7f507e72507e5ddb09a2ae2aeba.zip
FreeBSD-src-6cd7428b1336c7f507e72507e5ddb09a2ae2aeba.tar.gz
Use S_ISDIR() macro instead of a hand-rolled test.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 3b37d9a..0e9651e 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;
OpenPOWER on IntegriCloud