summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-07-01 19:02:43 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-07-01 19:02:43 +0000
commit738d29667f9cd1ce312ec011f5e37ce584d7173d (patch)
tree7ec2f0375da2b8f5ea17f0952a7c046d0a274606 /source3/param
parent29ac1823dfce39f2259ff1994aa6145ea6009154 (diff)
downloadsamba-738d29667f9cd1ce312ec011f5e37ce584d7173d.tar.gz
samba-738d29667f9cd1ce312ec011f5e37ce584d7173d.tar.bz2
samba-738d29667f9cd1ce312ec011f5e37ce584d7173d.zip
added "hide files" option.
lkcl (This used to be commit 6e594ce0e5a3af5e7311380d18ff0d19ba9698a7)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 9d3850b242..9947aca5ea 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -130,6 +130,7 @@ typedef struct
char *szLogonScript;
char *szLogonPath;
char *szVetoFiles;
+ char *szHideFiles;
char *szSmbrun;
char *szWINSserver;
char *szInterfaces;
@@ -395,6 +396,7 @@ struct parm_struct
{"netbios name", P_UGSTRING,P_GLOBAL, myname, NULL},
{"smbrun", P_STRING, P_GLOBAL, &Globals.szSmbrun, NULL},
{"veto files", P_STRING, P_GLOBAL, &Globals.szVetoFiles, NULL},
+ {"hide files", P_STRING, P_GLOBAL, &Globals.szHideFiles, NULL},
{"log file", P_STRING, P_GLOBAL, &Globals.szLogFile, NULL},
{"config file", P_STRING, P_GLOBAL, &Globals.szConfigFile, NULL},
{"smb passwd file", P_STRING, P_GLOBAL, &Globals.szSMBPasswdFile, NULL},
@@ -621,6 +623,7 @@ static void init_globals(void)
Globals.shmem_size = SHMEM_SIZE;
Globals.shmem_hash_size = SHMEM_HASH_SIZE;
Globals.bUnixRealname = False;
+ Globals.szHideFiles = DEFAULT_FILES_TO_HIDE;
#if (defined(NETGROUP) && defined(AUTOMOUNT))
Globals.bNISHomeMap = False;
string_set(&Globals.szNISHomeMapName, "auto.home");
@@ -796,6 +799,7 @@ FN_GLOBAL_STRING(lp_character_set,&Globals.szCharacterSet)
FN_GLOBAL_STRING(lp_logon_script,&Globals.szLogonScript)
FN_GLOBAL_STRING(lp_logon_path,&Globals.szLogonPath)
FN_GLOBAL_STRING(lp_veto_files,&Globals.szVetoFiles)
+FN_GLOBAL_STRING(lp_hide_files,&Globals.szHideFiles)
FN_GLOBAL_STRING(lp_remote_announce,&Globals.szRemoteAnnounce)
FN_GLOBAL_STRING(lp_wins_server,&Globals.szWINSserver)
FN_GLOBAL_STRING(lp_interfaces,&Globals.szInterfaces)