git.samba.org
/
metze
/
heimdal
/
svnmirror.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5a14f
)
use S_ISDIR
author
Love Hörnquist Åstrand
<lha@kth.se>
Mon, 25 May 2009 23:45:03 +0000
(23:45 +0000)
committer
Love 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
patch
|
blob
|
history
diff --git
a/appl/ftp/ftpd/ftpd.c
b/appl/ftp/ftpd/ftpd.c
index 6f3426249a55c2ba118ac2d54c62e8eb7b7763a7..512b9856118d83de7fede1d59d538d202e95d06b 100644
(file)
--- a/
appl/ftp/ftpd/ftpd.c
+++ b/
appl/ftp/ftpd/ftpd.c
@@
-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;