~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_copy.c

  • Committer: Monty Taylor
  • Date: 2008-10-10 01:32:55 UTC
  • mto: This revision was merged to the branch mainline in revision 499.
  • Revision ID: monty@inaugust.com-20081010013255-103hfya2ua78qnbw
Removed O_SHARE. I think it was only for OS/2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
  if (MyFlags & MY_HOLD_ORIGINAL_MODES)         /* Copy stat if possible */
64
64
    new_file_stat= test(!stat((char*) to, &new_stat_buff));
65
65
 
66
 
  if ((from_file=my_open(from,O_RDONLY | O_SHARE,MyFlags)) >= 0)
 
66
  if ((from_file=my_open(from,O_RDONLY,MyFlags)) >= 0)
67
67
  {
68
68
    if (stat(from, &stat_buff))
69
69
    {
75
75
    create_flag= (MyFlags & MY_DONT_OVERWRITE_FILE) ? O_EXCL : O_TRUNC;
76
76
 
77
77
    if ((to_file=  my_create(to,(int) stat_buff.st_mode,
78
 
                             O_WRONLY | create_flag | O_BINARY | O_SHARE,
 
78
                             O_WRONLY | create_flag | O_BINARY,
79
79
                             MyFlags)) < 0)
80
80
      goto err;
81
81