Changeset 745 for trunk/server/source4/ntvfs/ntvfs_base.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/ntvfs/ntvfs_base.c
r414 r745 201 201 } 202 202 203 /* 204 adds the IPC$ share, needed for RPC calls 205 */ 206 static NTSTATUS ntvfs_add_ipc_share(struct loadparm_context *lp_ctx) 207 { 208 struct loadparm_service *ipc; 209 210 if (lpcfg_service(lp_ctx, "IPC$")) { 211 /* it has already been defined in smb.conf or elsewhere */ 212 return NT_STATUS_OK; 213 } 214 215 ipc = lpcfg_add_service(lp_ctx, NULL, "IPC$"); 216 NT_STATUS_HAVE_NO_MEMORY(ipc); 217 218 lpcfg_do_service_parameter(lp_ctx, ipc, "comment", "IPC Service"); 219 lpcfg_do_service_parameter(lp_ctx, ipc, "path", "/dev/null"); 220 lpcfg_do_service_parameter(lp_ctx, ipc, "ntvfs handler", "default"); 221 lpcfg_do_service_parameter(lp_ctx, ipc, "browseable", "No"); 222 lpcfg_do_service_parameter(lp_ctx, ipc, "fstype", "IPC"); 223 224 return NT_STATUS_OK; 225 } 226 203 227 NTSTATUS ntvfs_init(struct loadparm_context *lp_ctx) 204 228 { 205 229 static bool initialized = false; 206 extern NTSTATUS ntvfs_posix_init(void); 207 extern NTSTATUS ntvfs_cifs_init(void); 208 extern NTSTATUS ntvfs_smb2_init(void); 209 extern NTSTATUS ntvfs_nbench_init(void); 210 extern NTSTATUS ntvfs_unixuid_init(void); 211 extern NTSTATUS ntvfs_ipc_init(void); 212 extern NTSTATUS ntvfs_print_init(void); 213 extern NTSTATUS ntvfs_simple_init(void); 214 extern NTSTATUS ntvfs_cifs_posix_init(void); 230 #define _MODULE_PROTO(init) extern NTSTATUS init(void); 231 STATIC_ntvfs_MODULES_PROTO; 215 232 init_module_fn static_init[] = { STATIC_ntvfs_MODULES }; 216 233 init_module_fn *shared_init; … … 225 242 226 243 talloc_free(shared_init); 244 245 ntvfs_add_ipc_share(lp_ctx); 227 246 228 247 return NT_STATUS_OK;
Note:
See TracChangeset
for help on using the changeset viewer.