1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3
Ralph Boehme 2a2ac63975 s3/smbd: set FILE_ATTRIBUTE_DIRECTORY as necessary
Some VFS modules like GPFS will always return success from
SMB_VFS_GET_DOS_ATTRIBUTES() but only set a subset of the attributes. It
neither sets FILE_ATTRIBUTE_NORMAL nor FILE_ATTRIBUTE_DIRECTORY.

We already handle the case that the VFS stack returns with result==0 and
then add the FILE_ATTRIBUTE_NORMAL, regardless of the type of the
filesystem object. If we want to handle result==0 situation in the
SMB_VFS_GET_DOS_ATTRIBUTES() caller, then do it right by either setting
FILE_ATTRIBUTE_NORMAL or FILE_ATTRIBUTE_DIRECTORY.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12261

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Sep 16 00:34:43 CEST 2016 on sn-devel-144
2016-09-16 00:34:42 +02:00
..
auth s4: messaging: Remove bool auto_remove parameter from imessaging_init(). 2016-07-23 06:04:11 +02:00
build
client s3: smbclient. Ensure we don't crash by freeing uninitialized *snapshots. 2016-08-22 19:10:22 +02:00
exports
groupdb Convert all uses of uint32/16/8 to _t in source3/groupdb. 2015-05-14 19:29:19 +02:00
include s3-include: Fix format-nonliteral warning 2016-08-24 01:33:50 +02:00
intl lang_tdb: don't leak lock_path or data_path onto talloc tos 2014-11-03 23:46:05 +01:00
lib unix_msg: Fix unix_dgram_send_queue_init 2016-09-14 19:30:27 +02:00
libads s3-libads: Do not use deprecated krb5_change_password() 2016-09-01 00:43:51 +02:00
libgpo gpo: don't leak cache_path onto talloc tos 2014-10-06 19:18:05 +02:00
libnet krb5_wrap: Rename smb_krb5_keytab_name() 2016-08-31 20:59:15 +02:00
librpc krb5_wrap: Rename kerberos_get_principal_from_service_hostname() 2016-08-31 20:59:16 +02:00
libsmb s3:libsmb fix a typo 2016-09-14 02:06:17 +02:00
locale s3: fix encryption help messages 2015-12-22 02:22:50 +01:00
locking smbd: ignore ctdb tombstone records in fetch_share_mode_unlocked_parser() 2016-08-08 14:26:24 +02:00
modules nfs4acl: Fix owner mapping with ID_TYPE_BOTH 2016-09-15 20:50:06 +02:00
nmbd dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
param docs-xml:smbdotconf: default "ntlm auth" to "no" 2016-07-22 16:03:26 +02:00
passdb passdb: Fix format-nonliteral warning 2016-08-24 01:33:51 +02:00
printing s3-spoolss: Support for adding printer drivers with info level 8 2016-08-23 01:06:25 +02:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3-registry: create winprint print processor entry for x64 as well. 2016-09-11 19:57:26 +02:00
rpc_client s3-spoolss: fix winreg_printer_ver_to_qword 2016-09-15 20:50:06 +02:00
rpc_server s3-spoolss: avoid referencing p->opnum in _spoolss_AddPrinterDriverEx 2016-09-11 19:57:26 +02:00
rpcclient s3-rpcclient: add getdriverpackagepath command. 2016-09-11 19:57:26 +02:00
script selftest: test listing directories inside snapshots 2016-08-25 01:38:28 +02:00
selftest selftest: allow tests.py scripts to run independently 2016-08-31 07:09:26 +02:00
services Convert all uint32/16/8 to _t in a couple of include files. 2015-05-12 04:22:55 +02:00
smbd s3/smbd: set FILE_ATTRIBUTE_DIRECTORY as necessary 2016-09-16 00:34:42 +02:00
torture s3-lib: Remove unused function sprintf_append 2016-08-24 01:33:50 +02:00
utils s3-util: Fix asking for username and password in smbget. 2016-08-26 04:22:27 +02:00
web
winbindd winbindd: Remove unused enum ent_type 2016-09-10 18:41:25 +02:00
.clang_complete lib: Remove tdb_compat 2015-03-17 11:30:52 +01:00
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript buildscripts: Fix the regression with --without-acl-support. 2016-08-08 21:27:46 +02:00
wscript_build s3-waf: give rpcclient its own wscript_build. 2016-09-11 19:57:26 +02:00
wscript_configure_system_ncurses Transition to waf 1.8: wrapped conf.check_cfg 2015-03-16 03:00:07 +01:00