summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1997-10-19 18:15:23 +0000
committermycroft <mycroft@NetBSD.org>1997-10-19 18:15:23 +0000
commit3ff72472fea8d4dd5a3ad79dca6c1cfae13bb762 (patch)
treeb9c897be3d33c13d0ae6a95913152238914bf234 /libexec
parentc967784829ef6c2db3400ddcea03b3311de737ef (diff)
Use S_IS*(), not S_IF*.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/conf.c b/libexec/ftpd/conf.c
index e06df29c7ab..2409e740486 100644
--- a/libexec/ftpd/conf.c
+++ b/libexec/ftpd/conf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.6 1997/09/23 13:56:39 lukem Exp $ */
+/* $NetBSD: conf.c,v 1.7 1997/10/19 18:15:23 mycroft Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: conf.c,v 1.6 1997/09/23 13:56:39 lukem Exp $");
+__RCSID("$NetBSD: conf.c,v 1.7 1997/10/19 18:15:23 mycroft Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -349,7 +349,7 @@ show_chdir_messages(code)
for (rlist = gl.gl_pathv; *rlist != NULL; rlist++) {
if (stat(*rlist, &st) != 0)
continue;
- if ((st.st_mode & S_IFMT) != S_IFREG)
+ if (!S_ISREG(st.st_mode))
continue;
then = st.st_mtime;
lreply(code, "Please read the file %s", *rlist);