summaryrefslogtreecommitdiffstats
path: root/source3/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-3/+3
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* Fix bug 8133 - strange behavior for the file (whose filename first character ↵Jeremy Allison2011-05-201-2/+3
| | | | | | | | | | is period ) in SMB2 case. When doing SMB2 renames, we need to match all filetypes (no attributes field in the SMB2 call). By default a file starting with a period is returned as FILE_ATTRIBUTE_HIDDEN in Samba. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 20 19:26:04 CEST 2011 on sn-devel-104
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* Fix bug #8144 - touch /mnt/newfile fails to set timestamp with CIFS client.Jeremy Allison2011-05-181-10/+15
| | | | | | | | | | | | | | The extra checks added for Windows correctness in our metadata changing paths to ensure the file handle has been opened with the correct access mask to allow FILE_WRITE_ATTRIBUTES etc. caused problems with the POSIX open code. The old POSIX open code maped O_RDONLY into FILE_READ, O_WRONLY into FILE_WRITE, and O_RDWR into FILE_READ|FILE_WRITE. This patch extends the mapping to add FILE_WRITE_ATTRIBUTES, FILE_READ_ATTRIBUTES and FILE_WRITE_EA, FILE_READ_EA to allow POSIX opens to set these values. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed May 18 02:22:32 CEST 2011 on sn-devel-104
* Fix many const compiler warnings.Jeremy Allison2011-05-051-3/+3
|
* Fix warning messages caused by addition of null check in fstrcpy macro.Jeremy Allison2011-05-041-2/+2
|
* Simple +1 changes in hardcoded lengths when changing from safe_strcpy to ↵Jeremy Allison2011-05-041-1/+1
| | | | strlcpy.
* s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner2011-05-021-0/+1
| | | | Guenther
* Fix bug #8112 - POSIX extension opens of a directory are denied with EISDIR.Jeremy Allison2011-04-291-2/+10
| | | | | | | | Ensure create_options are passed down to SMB_VFS_CREATE_FILE(). Correctly set create_options is SMB_O_DIRECTORY is set or pathname is known to be a directory. Jeremy.
* Fix bug 8111 - CIFS VFS: unexpected error on SMB posix openJeremy Allison2011-04-291-12/+49
| | | | | | | | | We are conflating the O_CREAT|O_EXCL with the O_TRUNC processing, they need to be separate. We need to chose using (O_CREAT|O_EXCL) first, then modify if O_TRUNC is set. This needs two separate switch statements. Jeremy
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-291-9/+9
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef'sStefan Metzmacher2011-04-241-28/+2
| | | | | | We rely on uint64_t for a long time now... metze
* s3: only include smb profiling where needed.Günther Deschner2011-04-141-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
* Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2011-04-051-3/+2
| | | | | | | | | | | | | | | Remove the final incorrect uses of conn->session_info->utok.uid. When we're in the "admin users" list, then this value is not set to zero. Inspired by the comment on this bug by Dmitry Butskoy <dmitry@butskoy.name>. I'll create a different fix for 3.5.x. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Apr 5 21:53:59 CEST 2011 on sn-devel-104
* s3-auth: smbd needs auth.hGünther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-trans2: only include trans2.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Revert "Fix bug 8021 - Incorrect string termination in volume/volume_name ↵Jeremy Allison2011-03-261-1/+1
| | | | | | | | | | | | | | for TRANS2-QUERY_FS_INFO/Info Volume." This reverts commit 042aafb87df6c05877b8fc7ef0d44877689d860a. I need to test against OS/2 to see if this is something Win28K breaks for older clients before allowing this. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 26 01:19:55 CET 2011 on sn-devel-104
* Fix bug 8021 - Incorrect string termination in volume/volume_name for ↵Volodymyr Khomenko2011-03-241-1/+1
| | | | | | | TRANS2-QUERY_FS_INFO/Info Volume. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 24 23:07:09 CET 2011 on sn-devel-104
* s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2011-02-221-20/+20
| | | | | | | | | | | | | | | | | | | | | These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth Rename cryptic 'ptok' to security_tokenAndrew Bartlett2011-02-101-9/+9
| | | | | | | | | This will allow the auth_serversupplied_info struct to be migrated to auth_session_info easier. Adnrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Allow SMB2_FIND to actually use the open fd handle if we support fdopendir. ↵Jeremy Allison2011-02-091-0/+1
| | | | Fallback to pathname opendir if not.
* If possible (O_DIRECTORY exists) open an fd for a directory open.Jeremy Allison2011-02-081-12/+4
| | | | | | | | | | | Start of the move towards handle-based code for directory access. Currently makes fstat/fchown code work for directories rather than falling back to pathnames. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 8 06:34:41 CET 2011 on sn-devel-104
* Fix bug #7863 - Unlink may unlink wrong file when hardlinks are involved.Jeremy Allison2011-01-251-4/+22
| | | | | | Do this by keeping a linked list of delete on close tokens, one for each filename that identifies a path to the dev/inode. Use the jenkins hash of the pathname to identify the correct token.
* Add uint32_t name_hash argument (currently unused) to get_file_infos().Jeremy Allison2011-01-251-4/+4
| | | | Will be used when we store more than one delete on close token.
* Ensure we don't use "./" in findfirst pathnames. Use a directory open of "." ↵Jeremy Allison2011-01-201-4/+8
| | | | instead.
* Add in fsp->access_mask checks. Not required (underlying system does this)Jeremy Allison2010-11-241-0/+38
| | | | | | | | | but makes logic cleaner. Pointed out by Metze. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 24 01:47:13 CET 2010 on sn-devel-104
* s3: Rename GIT_COMMIT_{TIME,DATE} to COMMIT_{TIME,DATE}.Jelmer Vernooij2010-11-121-2/+2
| | | This avoids some special casing in the waf code.
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* Fix crash in SMB2 rename found by gentest. We must always have an lcompJeremy Allison2010-10-061-1/+1
| | | | | | in the destination struct for a rename, so set the flag appropriately. Jeremy.
* Fix crash in SMB2 rename found by gentest. We must always have an lcompJeremy Allison2010-10-061-1/+1
| | | | | | | | | in the destination struct for a rename, so set the flag appropriately. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 6 00:29:51 UTC 2010 on sn-devel-104
* s3: Lift smbd_server_conn from file_find_di_firstVolker Lendecke2010-09-281-2/+2
|
* s3-auth Rename NT_USER_TOKEN user_sids -> sidsAndrew Bartlett2010-08-311-3/+3
| | | | This is closer to the struct security_token from security.idl
* Fix bug #7651 - mknod and mkfifo fails with "No such file or directory"Jeremy Allison2010-08-261-2/+2
| | | | | | | | Ensure we check the correct stat struct once we've created the special fix. Thanks to izh1979@gmail.com for pointing out the bug. Jeremy.
* s3: Make srv_send_smb take an sconn instead of a sock fdVolker Lendecke2010-08-241-2/+2
|
* s3: Remove smbd_server_fd from send_trans2_repliesVolker Lendecke2010-08-161-2/+2
|
* s3: use dump_data in query FILE_BASIC_UNIX_INFOVolker Lendecke2010-07-251-8/+3
| | | | | Jeremy, please check! To me this is a lot more readable than the decimal listing of the bytes.
* s3: Remove smbd_messaging_context() from smb_set_posix_lock()Volker Lendecke2010-07-051-2/+2
|
* s3: Explicitly pass sconn to blocking_lock_was_deferred_smb1Volker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_findcloseVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from call_trans2setfsinfoVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from smbd_do_qfsinfoVolker Lendecke2010-06-121-2/+2
|
* s3: Remove smbd_server_conn from call_trans2findnextVolker Lendecke2010-06-121-1/+1
|