pwd -LP
This commit is contained in:
		
							
								
								
									
										2
									
								
								touch.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								touch.c
									
									
									
									
									
								
							@@ -50,7 +50,7 @@ touch(const char *str)
 | 
			
		||||
			eprintf("stat %s:", str);
 | 
			
		||||
		if(cflag)
 | 
			
		||||
			return;
 | 
			
		||||
		if((fd = creat(str, O_RDONLY|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
 | 
			
		||||
		if((fd = creat(str, O_EXCL|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
 | 
			
		||||
			eprintf("creat %s:", str);
 | 
			
		||||
		close(fd);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user