faubackup faubackup-scatter.c,1.10,1.11

[email protected]
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup
In directory sc8-pr-cvs1:/tmp/cvs-serv11825

Modified Files:
	faubackup-scatter.c 
Log Message:
don't count as error if setting ownership is not possible


Index: faubackup-scatter.c
===================================================================
RCS file: /cvsroot/faubackup/faubackup/faubackup-scatter.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** faubackup-scatter.c	15 Oct 2003 12:10:12 -0000	1.10
--- faubackup-scatter.c	15 Oct 2003 12:15:25 -0000	1.11
***************
*** 353,365 ****
  permission(void)
  {
! 	static int done = 0;
  
! 	error++;
! 	if( done ) {
  		return;
  	}
  	fprintf( stderr, "%s: WARNING: only root can set uid/gid\n",
  			progname );
! 	done = 1;
  }
  
--- 353,364 ----
  permission(void)
  {
! 	static int warned = 0;
  
! 	if( warned ) {
  		return;
  	}
  	fprintf( stderr, "%s: WARNING: only root can set uid/gid\n",
  			progname );
! 	warned = 1;
  }
  




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.