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:
committed by
Gerald (Jerry) Carter
parent
85c2b8b944
commit
6f7337163e
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user