summaryrefslogtreecommitdiff
path: root/lang/cli/files/patch-pal::unix::file::file.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cli/files/patch-pal::unix::file::file.c')
-rw-r--r--lang/cli/files/patch-pal::unix::file::file.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/cli/files/patch-pal::unix::file::file.c b/lang/cli/files/patch-pal::unix::file::file.c
new file mode 100644
index 000000000000..67013da52e2b
--- /dev/null
+++ b/lang/cli/files/patch-pal::unix::file::file.c
@@ -0,0 +1,25 @@
+
+$FreeBSD$
+
+--- pal/unix/file/file.c 2002/04/09 22:17:33 1.1
++++ pal/unix/file/file.c 2002/04/09 22:19:43
+@@ -2822,18 +2822,10 @@
+ }
+ else
+ {
+- /* give write permission to anyone that has read permission */
++ /* give write permission to owner if it has read permission */
+ if ( new_mode & S_IRUSR )
+ {
+ new_mode |= S_IWUSR;
+- }
+- if ( new_mode & S_IRGRP )
+- {
+- new_mode |= S_IWGRP;
+- }
+- if ( new_mode & S_IROTH )
+- {
+- new_mode |= S_IWOTH;
+ }
+ }
+ TRACE("new mode is 0x%lx\n", new_mode);