Changeset 154


Ignore:
Timestamp:
Aug 21, 2008, 10:39:38 AM (17 years ago)
Author:
Yuri Dario
Message:

If a pending time is stored, do not change also the file. Fixes ticket:60.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/trans2.c

    r134 r154  
    41624162                        fsp_set_pending_modtime(fsp, ts[1]);
    41634163                }
    4164 
    4165         }
     4164        }
     4165#ifdef __OS2__
     4166        /* YD ticket#60, the file is opened, we cannot write to it,
     4167         * so we can return immediately (see above for more comments).
     4168         */
     4169        else {
     4170#endif
    41664171        DEBUG(10,("smb_set_file_time: setting utimes to modified values.\n"));
    41674172
     
    41694174                return map_nt_error_from_unix(errno);
    41704175        }
     4176#ifdef __OS2__
     4177        }
     4178#endif
    41714179        if (action != 0) {
    41724180                notify_fname(conn, NOTIFY_ACTION_MODIFIED, action, fname);
  • trunk/samba/source/smbd/trans2.c

    r136 r154  
    49034903                }
    49044904        }
    4905 
     4905#ifdef __OS2__
     4906        /* YD ticket#60, the file is opened, we cannot write to it,
     4907         * so we can return immediately (see above for more comments).
     4908         */
     4909        else {
     4910#endif
    49064911        DEBUG(10,("smb_set_file_time: setting utimes to modified values.\n"));
    49074912
     
    49094914                return map_nt_error_from_unix(errno);
    49104915        }
     4916#ifdef __OS2__
     4917        }
     4918#endif
    49114919        notify_fname(conn, NOTIFY_ACTION_MODIFIED, action, fname);
    49124920
Note: See TracChangeset for help on using the changeset viewer.