Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/nttrans.c

    r228 r232  
    13061306        }
    13071307
    1308         if( is_ntfs_stream_name(oldname)) {
    1309                 /* Can't rename a stream. */
    1310                 reply_nterror(req, NT_STATUS_ACCESS_DENIED);
    1311                 END_PROFILE(SMBntrename);
    1312                 return;
    1313         }
    1314 
    13151308        if (ms_has_wild(oldname)) {
    13161309                reply_nterror(req, NT_STATUS_OBJECT_PATH_SYNTAX_BAD);
     
    13571350                }
    13581351                reply_nterror(req, status);
     1352                END_PROFILE(SMBntrename);
     1353                return;
     1354        }
     1355
     1356        /* The new name must begin with a ':' if the old name is a stream. */
     1357        if (is_ntfs_stream_name(oldname) && (newname[0] != ':')) {
     1358                reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
    13591359                END_PROFILE(SMBntrename);
    13601360                return;
Note: See TracChangeset for help on using the changeset viewer.