From fb924d02ec05f7106beeeb409becbc39e00ddac9 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Mon, 11 Mar 2013 22:23:27 +0100 Subject: s3: remove some dead code (for setdir command) set dir seems to have been a special SMB command used by Pathworks clients the supporting code for it was already removed in 2007, so just remove all remnants related to it (smb.conf parameter, documentation, ...) Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Mar 12 01:03:37 CET 2013 on sn-devel-104 --- source3/include/proto.h | 1 - source3/include/smb_macros.h | 1 - source3/include/smbprofile.h | 5 ----- 3 files changed, 7 deletions(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index c36125e53e..00a9a69d73 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1278,7 +1278,6 @@ bool lp_hideunwriteable_files(int ); bool lp_browseable(int ); bool lp_access_based_share_enum(int ); bool lp_readonly(int ); -bool lp_no_set_dir(int ); bool lp_guest_ok(int ); bool lp_guest_only(int ); bool lp_administrative_share(int ); diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 8b9d94181f..ff3aced755 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -72,7 +72,6 @@ #define VALID_SNUM(snum) (lp_snum_ok(snum)) #define GUEST_OK(snum) (VALID_SNUM(snum) && lp_guest_ok(snum)) #define GUEST_ONLY(snum) (VALID_SNUM(snum) && lp_guest_only(snum)) -#define CAN_SETDIR(snum) (!lp_no_set_dir(snum)) #define CAN_PRINT(conn) ((conn) && lp_print_ok(SNUM(conn))) #define MAP_HIDDEN(conn) ((conn) && lp_map_hidden(SNUM(conn))) #define MAP_SYSTEM(conn) ((conn) && lp_map_system(SNUM(conn))) diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 6e136a08fc..9bcee42f8e 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -563,11 +563,6 @@ enum profile_stats_values #define SMBinvalid_count __profile_stats_value(PR_VALUE_SMBINVALID, count) #define SMBinvalid_time __profile_stats_value(PR_VALUE_SMBINVALID, time) -/* Pathworks setdir command */ - PR_VALUE_PATHWORKS_SETDIR, -#define pathworks_setdir_count __profile_stats_value(PR_VALUE_PATHWORKS_SETDIR, count) -#define pathworks_setdir_time __profile_stats_value(PR_VALUE_PATHWORKS_SETDIR, time) - /* These are the TRANS2 sub commands */ PR_VALUE_TRANS2_OPEN, #define Trans2_open_count __profile_stats_value(PR_VALUE_TRANS2_OPEN, count) -- cgit