]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
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 b8a92099d369167d811d15e460a920b2ce17663b..0ed75e22d82d7da84b029a1200b0682b7e7f54dd 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;