Updated datafile security modes

This commit is contained in:
Michiel Broek
2001-11-14 21:37:58 +00:00
parent 1febff88c3
commit 5f06e6e421
41 changed files with 111 additions and 122 deletions

View File

@@ -1,8 +1,7 @@
/*****************************************************************************
*
* File ..................: setup/m_ngroups.c
* $Id$
* Purpose ...............: Setup NGroups.
* Last modification date : 19-Oct-2001
*
*****************************************************************************
* Copyright (C) 1997-2001
@@ -64,6 +63,7 @@ int CountNGroup(void)
ngrouphdr.recsize = sizeof(ngroup);
fwrite(&ngrouphdr, sizeof(ngrouphdr), 1, fil);
fclose(fil);
chmod(ffile, 0640);
return 0;
} else
return -1;
@@ -175,6 +175,7 @@ void CloseNGroup(int force)
fclose(fi);
fclose(fo);
unlink(fout);
chmod(fin, 0640);
Syslog('+', "Updated \"ngroups.data\"");
return;
}