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 | |
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.
Diffstat (limited to 'lang/cli')
-rw-r--r-- | lang/cli/Makefile | 3 | ||||
-rw-r--r-- | lang/cli/files/patch-pal::unix::file::file.c | 25 |
2 files changed, 26 insertions, 2 deletions
diff --git a/lang/cli/Makefile b/lang/cli/Makefile index fdc0878fc835..7054d4aa10f0 100644 --- a/lang/cli/Makefile +++ b/lang/cli/Makefile @@ -7,7 +7,7 @@ PORTNAME= cli PORTVERSION= 20020326 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= http://download.microsoft.com/download/.netframesdk/CLI/Beta1/WXP/EN-US/ \ http://download.microsoft.com/download/.netframesdk/Beta1/WXP/EN-US/ \ @@ -43,7 +43,6 @@ post-configure: done do-build: - @${CHMOD} 700 ${WRKSRC} # <- we need this because build system creates world-writeable dirs @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${SH} env.sh ./buildall) .if !defined(I_AGREE_TO_LICENSE_TERMS) 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); |