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.
This commit is contained in:
Maxim Sobolev 2002-04-09 22:38:40 +00:00
parent 722f70571f
commit 62d38ed44b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57512
2 changed files with 26 additions and 2 deletions

View file

@ -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)

View file

@ -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);