mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
vfs write data fix. Fix for name matching in addtosmbpass
Jeremy.
(This used to be commit 85738b7ee1
)
This commit is contained in:
parent
c79b92bbd8
commit
ace6739f5e
@ -41,7 +41,7 @@ BEGIN {
|
||||
{
|
||||
print $0;
|
||||
for(name in names) {
|
||||
if($1 ~ name) {
|
||||
if($1 == name) {
|
||||
delete names[name];
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ static unsigned int allocated_write_caches;
|
||||
static unsigned int num_write_caches;
|
||||
|
||||
/****************************************************************************
|
||||
*Really* write to a file
|
||||
*Really* write to a file.
|
||||
****************************************************************************/
|
||||
|
||||
static ssize_t real_write_file(files_struct *fsp,char *data,SMB_OFF_T pos, size_t n)
|
||||
@ -149,7 +149,7 @@ static ssize_t real_write_file(files_struct *fsp,char *data,SMB_OFF_T pos, size_
|
||||
if ((pos != -1) && (seek_file(fsp,pos) == -1))
|
||||
return -1;
|
||||
|
||||
return write_data(fsp->fd,data,n);
|
||||
return vfs_write_data(fsp,data,n);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user