From e869a10a497ffa1ef66a42ae2266cae6268901d2 Mon Sep 17 00:00:00 2001 From: "syd%netscape.com" Date: Thu, 27 Sep 2001 08:27:16 +0000 Subject: [PATCH] Checking in fix for 84896. r=selmer, sr=blake. git-svn-id: svn://10.0.0.236/trunk@103932 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpinstall/cleanup/InstallCleanupUnix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/xpinstall/cleanup/InstallCleanupUnix.cpp b/mozilla/xpinstall/cleanup/InstallCleanupUnix.cpp index 6b542ef95e3..e8f71cc4884 100644 --- a/mozilla/xpinstall/cleanup/InstallCleanupUnix.cpp +++ b/mozilla/xpinstall/cleanup/InstallCleanupUnix.cpp @@ -40,7 +40,7 @@ int NativeDeleteFile(const char* aFileToDelete) } else { - if(!unlink(aFileToDelete)) + if(unlink(aFileToDelete) != 0) return TRY_LATER; } return DONE; @@ -61,7 +61,7 @@ int NativeReplaceFile(const char* replacementFile, const char* doomedFile ) if (strcmp(replacementFile, doomedFile)) return DONE; - if (!unlink(doomedFile)) + if (unlink(doomedFile) != 0) { if (stat(doomedFile, &fileStack) == 0) return TRY_LATER; @@ -94,7 +94,7 @@ int main(int argc,char* argv[]) do { status = PerformScheduledTasks(reg); if (status != DONE) - sleep(1000); + sleep(1); } while (status == TRY_LATER); NR_RegClose(®); }