vfs write data fix. Fix for name matching in addtosmbpass
authorJeremy Allison <jra@samba.org>
Fri, 25 Aug 2000 20:44:33 +0000 (20:44 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 25 Aug 2000 20:44:33 +0000 (20:44 +0000)
Jeremy.

source/script/addtosmbpass
source/smbd/fileio.c

index 84a7e6fac050b7435e4c5e81b2eef8bc23f84c19..bc82851c52d09f6ac3fac983fbefe37a738ade4b 100644 (file)
@@ -41,7 +41,7 @@ BEGIN {
 {
   print $0;
   for(name in names) {
-    if($1 ~ name) {
+    if($1 == name) {
       delete names[name];
     }
   }
index 45ad959a3c25d43fa48ad492f02691a93ea128e2..7fbf6e2a378efa90c74ea99f789a71ce5dd3fe92 100644 (file)
@@ -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);
 }
 
 /****************************************************************************