From ac4f2391bea239960fb4d947c9899e4cd19d5062 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Thu, 18 Nov 2004 09:26:58 +0000 Subject: Use S_ISDIR() macro instead of a hand-rolled test. --- libexec/ftpd/ftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 3b37d9a64c758..0e9651e1a0061 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; -- cgit v1.3