* fhandler_disk_file.cc (fhandler_disk_file::open): Don't
move the file pointer to the end of file if O_APPEND is specified in the open flags.
This commit is contained in:
		@@ -1,3 +1,9 @@
 | 
			
		||||
2002-07-11  Pavel Tsekov  <ptsekov@gmx.net>
 | 
			
		||||
 | 
			
		||||
	* fhandler_disk_file.cc (fhandler_disk_file::open): Don't
 | 
			
		||||
	move the file pointer to the end of file if O_APPEND is
 | 
			
		||||
	specified in the open flags.
 | 
			
		||||
 | 
			
		||||
2002-07-09  Christopher Faylor  <cgf@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* debug.cc: Avoid explicit zeroing of globals.
 | 
			
		||||
 
 | 
			
		||||
@@ -389,9 +389,6 @@ fhandler_disk_file::open (path_conv *real_path, int flags, mode_t mode)
 | 
			
		||||
      return 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  if (flags & O_APPEND)
 | 
			
		||||
    SetFilePointer (get_handle(), 0, 0, FILE_END);
 | 
			
		||||
 | 
			
		||||
  set_symlink_p (real_path->issymlink ());
 | 
			
		||||
  set_execable_p (real_path->exec_state ());
 | 
			
		||||
  set_socket_p (real_path->issocket ());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user