summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/copy.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 995e71b77..23d7d6aba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
+
+ * src/copy.c (cached_umask): Cast -1 to mode_t to avoid a warning
+ about out-of-range initializer with Sun C 5.8.
+
2007-02-20 Jim Meyering <jim@meyering.net>
* bootstrap (CVS_only_file): Use README-hacking.
diff --git a/src/copy.c b/src/copy.c
index 5ec5a921c..a3489c399 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -1980,7 +1980,7 @@ chown_failure_ok (struct cp_options const *x)
extern mode_t
cached_umask (void)
{
- static mode_t mask = -1;
+ static mode_t mask = (mode_t) -1;
if (mask == (mode_t) -1)
{
mask = umask (0);