diff options
author | Tim Prouty <tprouty@samba.org> | 2009-07-02 13:39:20 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-07-06 15:38:42 -0700 |
commit | 3cb0e521e1bdddde972b6fd08fb86f7fe73da8d5 (patch) | |
tree | 22777dd2e4d6db9f30b19275a91a9dd3c21a2fbf /source3/smbd/dosmode.c | |
parent | f39232a8fb93cfccfe1533ab613867572ff7f848 (diff) | |
download | samba-3cb0e521e1bdddde972b6fd08fb86f7fe73da8d5.tar.gz samba-3cb0e521e1bdddde972b6fd08fb86f7fe73da8d5.tar.bz2 samba-3cb0e521e1bdddde972b6fd08fb86f7fe73da8d5.zip |
s3: Plumb smb_filename through SMB_VFS_NTIMES
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r-- | source3/smbd/dosmode.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index 97d788218d..76034db164 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -722,11 +722,9 @@ int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname, than POSIX. *******************************************************************/ -int file_ntimes(connection_struct *conn, const char *fname, - struct smb_file_time *ft, const SMB_STRUCT_STAT *psbuf) +int file_ntimes(connection_struct *conn, const struct smb_filename *smb_fname, + struct smb_file_time *ft) { - struct smb_filename *smb_fname = NULL; - NTSTATUS status; int ret = -1; errno = 0; @@ -749,7 +747,7 @@ int file_ntimes(connection_struct *conn, const char *fname, return 0; } - if(SMB_VFS_NTIMES(conn, fname, ft) == 0) { + if(SMB_VFS_NTIMES(conn, smb_fname, ft) == 0) { return 0; } @@ -767,21 +765,13 @@ int file_ntimes(connection_struct *conn, const char *fname, (as DOS does). */ - status = create_synthetic_smb_fname_split(talloc_tos(), fname, psbuf, - &smb_fname); - - if (!NT_STATUS_IS_OK(status)) { - return -1; - } - /* Check if we have write access. */ if (can_write_to_file(conn, smb_fname)) { /* We are allowed to become root and change the filetime. */ become_root(); - ret = SMB_VFS_NTIMES(conn, fname, ft); + ret = SMB_VFS_NTIMES(conn, smb_fname, ft); unbecome_root(); } - TALLOC_FREE(smb_fname); return ret; } |