diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-04-09 22:38:40 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-04-09 22:38:40 +0000 |
commit | 62d38ed44b2e31b5637706a100507cdb2ba8d78a (patch) | |
tree | 8ea7340fde84e2cd2d650305e59c6e062b9f0af4 /lang/cli/files | |
parent | Teach the creature how properly create shared libs on FreeBSD, so that (diff) |
Fix a silly permission bug, which results in a 777 permission all over the
WRKSRC. The problem was that when trying to map read-only FAT attribute into
*nix permission, MS assumed that if that attribute isn't set then write
permissions should be granted to everyone. Funny, eh?
Bump PORTREVISION.
Notes
Notes:
svn path=/head/; revision=57512
Diffstat (limited to 'lang/cli/files')
-rw-r--r-- | lang/cli/files/patch-pal::unix::file::file.c | 25 |
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); |