Skip to content
Snippets Groups Projects
Commit 95f03856 authored by Reuben Thomas's avatar Reuben Thomas
Browse files

[project @ 2000-04-06 10:26:09 by rrt]

POSIX has not heard
of S_IWRITE
It uses S_IWSR.
parent dff7eef1
No related branches found
No related tags found
No related merge requests found
/* /*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * (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 * renameFile Runtime Support
*/ */
...@@ -58,7 +58,7 @@ StgByteArray npath; ...@@ -58,7 +58,7 @@ StgByteArray npath;
ghc_errstr = "file is a directory"; ghc_errstr = "file is a directory";
return -1; return -1;
} }
while (chmod(npath, S_IWRITE) != 0) { while (chmod(npath, S_IWUSR) != 0) {
if (errno != EINTR) { if (errno != EINTR) {
cvtErrno(); cvtErrno();
stdErrno(); stdErrno();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment