git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3911fa
)
r6196: Make the comparisons consistent with in the same expression.
author
Richard Sharpe
<sharpe@samba.org>
Mon, 4 Apr 2005 16:42:31 +0000
(16:42 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:11:25 +0000
(13:11 -0500)
(This used to be commit
6f7337163e2eaae2d24ccebcd31787e48f543fbf
)
source4/smbd/server.c
patch
|
blob
|
history
diff --git
a/source4/smbd/server.c
b/source4/smbd/server.c
index 1357541ceadfcbc67a30c6bf96650fe810cc247f..d6f2afdaea4f54524401542d33055569ae67e364 100644
(file)
--- a/
source4/smbd/server.c
+++ b/
source4/smbd/server.c
@@
-59,7
+59,7
@@
static void cleanup_tmp_files(void)
* Don't try to delete . and ..
*/
if (strcmp(de->d_name, ".") != 0 &&
- strcmp(de->d_name, "..")) {
+ strcmp(de->d_name, "..")
!= 0
) {
char *fname = talloc_asprintf(mem_ctx, "%s/%s", path, de->d_name);
int ret = unlink(fname);
if (ret == -1 &&