CVS: ispman/lib delete_domain_directories.lib,1.3,1.4 delete_home_directory.lib,1.3,1.4

Atif Ghaffar <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14656

Modified Files:
	delete_domain_directories.lib delete_home_directory.lib 
Log Message:
replacing -uid with -user and -gid with -group. Thanks Armand for the rescue. This will now work on FBSD. Nevertheless it should be replaced with something safer in future

Index: delete_domain_directories.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/delete_domain_directories.lib,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** delete_domain_directories.lib	18 Sep 2003 14:38:47 -0000	1.3
--- delete_domain_directories.lib	18 Sep 2003 15:22:50 -0000	1.4
***************
*** 15,19 ****
  		# comment 2. Not all find has the uid and gid switches
  
! 		my $command="find  $home_directory -depth -uid $owner -gid $group  -type d -exec rm -rf {} \\;";
  		#print STDERR "$command\n";
  		system($command);
--- 15,19 ----
  		# comment 2. Not all find has the uid and gid switches
  
! 		my $command="find  $home_directory -depth -user $owner -group $group  -type d -exec rm -rf {} \\;";
  		#print STDERR "$command\n";
  		system($command);

Index: delete_home_directory.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/delete_home_directory.lib,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** delete_home_directory.lib	18 Sep 2003 14:38:47 -0000	1.3
--- delete_home_directory.lib	18 Sep 2003 15:22:50 -0000	1.4
***************
*** 16,20 ****
                  # comment 2. Not all find has the uid and gid switches
  
! 		my $command="find  $home_directory -depth -uid $owner -gid $group  -type d -exec rm -rf {} \\;";
  		system($command);
  	};
--- 16,20 ----
                  # comment 2. Not all find has the uid and gid switches
  
! 		my $command="find  $home_directory -depth -user $owner -group $group  -type d -exec rm -rf {} \\;";
  		system($command);
  	};



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
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.