use S_ISDIR
authorLove Hörnquist Åstrand <lha@kth.se>
Mon, 25 May 2009 23:45:03 +0000 (23:45 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Mon, 25 May 2009 23:45:03 +0000 (23:45 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25230 ec53bebd-3082-4978-b11e-865c3cabbd6b

appl/ftp/ftpd/ftpd.c

index 6f3426249a55c2ba118ac2d54c62e8eb7b7763a7..512b9856118d83de7fede1d59d538d202e95d06b 100644 (file)
@@ -1741,7 +1741,7 @@ do_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;