CVS: ispman/lib delete_domain_directories.lib,1.1,1.2 delete_home_directory.lib,1.1,1.2

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-serv5878

Modified Files:
	delete_domain_directories.lib delete_home_directory.lib 
Log Message:
marking find with rm as dangerous. its making me nervous and should be replaced with something more gentle or atleast run with the rights of the user and not root

Index: delete_domain_directories.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/delete_domain_directories.lib,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** delete_domain_directories.lib	3 Jan 2001 16:01:15 -0000	1.1
--- delete_domain_directories.lib	18 Sep 2003 14:36:55 -0000	1.2
***************
*** 10,13 ****
--- 10,15 ----
  	# make sure, that only the user's home_directory will be deleted	
  	if (-e $home_directory){
+                # DEVVELOPERS  PLEASE NOTE. THIS COMMAND IS DANGEROUS
+                 # Please find something else
  		my $command="find  $home_directory -depth -uid $owner -gid $group  -type d -exec rm -rf {} \\;";
  		#print STDERR "$command\n";

Index: delete_home_directory.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/delete_home_directory.lib,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** delete_home_directory.lib	3 Jan 2001 16:01:15 -0000	1.1
--- delete_home_directory.lib	18 Sep 2003 14:36:55 -0000	1.2
***************
*** 12,15 ****
--- 12,17 ----
  	# make sure, that only the user's home_directory will be deleted	
  	if (-e $home_directory){
+ 		# DEVVELOPERS  PLEASE NOTE. THIS COMMAND IS DANGEROUS
+ 		# Please find something else
  		my $command="find  $home_directory -depth -uid $owner -gid $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.