faubackup/src faubackup-scatter.c,1.10,1.11
Martin Waitz <[email protected]> Thu, 15 Apr 2004 17:39:42 +0000
| Newsgroups | gmane.comp.sysutils.backup.faubackup.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/faubackup/faubackup/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5486/src
Modified Files:
faubackup-scatter.c
Log Message:
fix umask for newly created files.
thanks to Truls A. Tangstad
Index: faubackup-scatter.c
===================================================================
RCS file: /cvsroot/faubackup/faubackup/src/faubackup-scatter.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** faubackup-scatter.c 29 Mar 2004 00:32:51 -0000 1.10
--- faubackup-scatter.c 15 Apr 2004 17:39:40 -0000 1.11
***************
*** 769,774 ****
dir_getlast();
! /* make new files not readable at creation time */
! ret = umask(0577);
if( ret < 0 ) {
fprintf( stderr, "%s: umask(0): %s\n",
--- 769,774 ----
dir_getlast();
! /* restrict access to new files/dirs while they are created */
! ret = umask(0077);
if( ret < 0 ) {
fprintf( stderr, "%s: umask(0): %s\n",
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click