(*) Honor umask when creating the destination directory.

b = 38755
r = dbragg
sr = alecf


(*) Initialize var so HP-UX and Sun compilers are happy.

b = 46558
r = sgehani (checking in for jdunn)
sr = mscott
This commit is contained in:
sgehani%netscape.com 2001-03-03 00:43:19 +00:00
Родитель e22bd15855
Коммит 44a7a239e8
3 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -10,7 +10,7 @@ Title=Le Mozilla Installer
;-------------------------------------------------------------------------
Show Dialog=TRUE
Title=Mozilla Installer
Readme File=
Readme File=README
;-------------------------------------------------------------------------

Просмотреть файл

@ -33,7 +33,8 @@ nsComponent::nsComponent() :
mNext(NULL),
mIndex(-1),
mRefCount(0),
mDepRefCount(0)
mDepRefCount(0),
mNextDependeeIdx(0)
{
int i;

Просмотреть файл

@ -711,7 +711,11 @@ nsSetupTypeDlg::CreateDestYes(GtkWidget *aWidget, gpointer aData)
{
DUMP("CreateDestYes");
int err = 0;
err = mkdir(gCtx->opt->mDestination, 0755);
mode_t oldPerms = umask(022);
err = mkdir(gCtx->opt->mDestination, (0777 & ~oldPerms));
umask(oldPerms); // restore original umask
gtk_widget_destroy(sCreateDestDlg);
sConfirmCreateUp = FALSE;