From 95f03856b44cb22cf47f658ab0d619c362d0a589 Mon Sep 17 00:00:00 2001 From: rrt Date: Thu, 6 Apr 2000 10:26:09 +0000 Subject: [PATCH] [project @ 2000-04-06 10:26:09 by rrt] POSIX has not heard of S_IWRITE It uses S_IWSR. --- ghc/lib/std/cbits/renameFile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/lib/std/cbits/renameFile.c b/ghc/lib/std/cbits/renameFile.c index 76ec34b..50bb472 100644 --- a/ghc/lib/std/cbits/renameFile.c +++ b/ghc/lib/std/cbits/renameFile.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: renameFile.c,v 1.6 2000/04/05 17:05:50 rrt Exp $ + * $Id: renameFile.c,v 1.7 2000/04/06 10:26:09 rrt Exp $ * * renameFile Runtime Support */ @@ -58,7 +58,7 @@ StgByteArray npath; ghc_errstr = "file is a directory"; return -1; } - while (chmod(npath, S_IWRITE) != 0) { + while (chmod(npath, S_IWUSR) != 0) { if (errno != EINTR) { cvtErrno(); stdErrno(); -- 1.7.10.4