r23792: convert Samba4 to GPLv3
[samba.git] / source4 / torture / raw / samba3hide.c
index 8c90ed49b2eff57bbb9c5b7ebdb5ff74107a3f74..3fe151f0091c9c612cd370e79569113efbc27017 100644 (file)
@@ -5,7 +5,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -14,8 +14,7 @@
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
@@ -263,6 +262,9 @@ BOOL torture_samba3_hide(struct torture_context *torture)
                return False;
        }
 
+       smbcli_chmod(cli->tree, fname, UNIX_R_USR|UNIX_W_USR);
+       smbcli_unlink(cli->tree, fname);
+       
        return True;
 }