diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-07 19:45:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:27 -0500 |
commit | b81b6b31c5da2d4aade3120ea436a0433fbf025f (patch) | |
tree | 1772cb590cabf94585661c3e208a802178260828 /source3/libsmb | |
parent | 062a22be47261d6a447e66f96a4988be1fe2dd20 (diff) | |
download | samba-b81b6b31c5da2d4aade3120ea436a0433fbf025f.tar.gz samba-b81b6b31c5da2d4aade3120ea436a0433fbf025f.tar.bz2 samba-b81b6b31c5da2d4aade3120ea436a0433fbf025f.zip |
r21750: Sync up with SAMBA_3_0_25. Only client changes are in libsmbclient
right now.
Jeremy.
(This used to be commit 6dd5f0ef0fe3a673081e16e656ca579bf50457ff)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index ac468e0aee..76eddd3f63 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -496,7 +496,7 @@ BOOL cli_nt_hardlink(struct cli_state *cli, const char *fname_src, const char *f Delete a file. ****************************************************************************/ -BOOL cli_unlink(struct cli_state *cli, const char *fname) +BOOL cli_unlink_full(struct cli_state *cli, const char *fname, uint16 attrs) { char *p; @@ -509,7 +509,7 @@ BOOL cli_unlink(struct cli_state *cli, const char *fname) SSVAL(cli->outbuf,smb_tid,cli->cnum); cli_setup_packet(cli); - SSVAL(cli->outbuf,smb_vwv0,aSYSTEM | aHIDDEN); + SSVAL(cli->outbuf,smb_vwv0, attrs); p = smb_buf(cli->outbuf); *p++ = 4; @@ -529,6 +529,15 @@ BOOL cli_unlink(struct cli_state *cli, const char *fname) } /**************************************************************************** + Delete a file. +****************************************************************************/ + +BOOL cli_unlink(struct cli_state *cli, const char *fname) +{ + return cli_unlink_full(cli, fname, aSYSTEM | aHIDDEN); +} + +/**************************************************************************** Create a directory. ****************************************************************************/ |