1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00

r6196: Make the comparisons consistent with in the same expression.

This commit is contained in:
Richard Sharpe
2005-04-04 16:42:31 +00:00
committed by Gerald (Jerry) Carter
parent 85c2b8b944
commit 6f7337163e

View 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 &&