projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3baa7fa
)
Use proper mode_t types and macros.
author
Jim Meyering
<jim@meyering.net>
Mon, 26 Apr 1999 12:19:37 +0000
(12:19 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/mv.c
b/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;