r6196: Make the comparisons consistent with in the same expression.
authorRichard Sharpe <sharpe@samba.org>
Mon, 4 Apr 2005 16:42:31 +0000 (16:42 +0000)
committerGerald (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

index 1357541ceadfcbc67a30c6bf96650fe810cc247f..d6f2afdaea4f54524401542d33055569ae67e364 100644 (file)
@@ -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 &&