Use proper mode_t types and macros.
authorJim Meyering <jim@meyering.net>
Mon, 26 Apr 1999 12:19:37 +0000 (12:19 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 26 Apr 1999 12:19:37 +0000 (12:19 +0000)
Don't assume the traditional Unix values for mode bits.

src/mv.c

index b8a9209..0ed75e2 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -136,7 +136,7 @@ cp_option_init (struct cp_options *x)
      when using chmod.  The creation mask is set to be liberal, so
      that created directories can be written, even if it would not
      have been allowed with the mask this process was started with.  */
-  x->umask_kill = 0777777 ^ umask (0);
+  x->umask_kill = ~ umask (0);
 
   x->update = 0;
   x->verbose = 0;