r6187: 1. Make sure that we don't try to delete . and .. in a more portable way.
commitcf97980f3129b9a3eb7bdf3ae95f4fd99a597259
authorRichard Sharpe <sharpe@samba.org>
Sun, 3 Apr 2005 21:37:13 +0000 (3 21:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:24 +0000 (10 13:11 -0500)
treefcc86f2b684a574e943b3c0a35362d75fca332a2
parent6db5d09dba3f1f6111b5fcd89cb303c95adec6bd
r6187: 1. Make sure that we don't try to delete . and .. in a more portable way.

2. Also, don't try to delete directories.

I am not entirely happy with this patch, and the fact that there is a
define for HAVE_SYS_STAT_H suggests that there are some systems for which
stat will not be defined, which means that the patch is not entirely
portable.
(This used to be commit fe7ddad7d44a49b2efe81cb3d0a5b2d09d1892ab)
source4/smbd/server.c