Changeset 952
- Timestamp:
- Aug 12, 2016, 12:48:26 AM (9 years ago)
- Location:
- trunk/server/source3
- Files:
-
- 2 edited
-
lib/popt_common.c (modified) (4 diffs)
-
nmbd/nmbd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/popt_common.c
r745 r952 40 40 extern bool override_logfile; 41 41 42 43 44 42 45 static void set_logfile(poptContext con, const char * arg) 46 43 47 { 44 48 … … 58 62 } 59 63 lp_set_logfile(lfile); 64 65 66 67 68 69 60 70 SAFE_FREE(lfile); 61 71 } … … 75 85 76 86 if (reason == POPT_CALLBACK_REASON_PRE) { 87 88 89 77 90 set_logfile(con, get_dyn_LOGFILEBASE()); 91 78 92 talloc_set_log_fn(popt_s3_talloc_log_fn); 79 93 talloc_set_abort_fn(smb_panic); … … 136 150 case 'l': 137 151 if (arg) { 152 153 154 138 155 set_logfile(con, arg); 156 139 157 override_logfile = True; 140 158 set_dyn_LOGFILEBASE(arg); -
trunk/server/source3/nmbd/nmbd.c
r949 r952 397 397 398 398 #ifdef __OS2__ 399 /* restore the logfile to log.nmbd always */ 400 char *lfile = NULL; 401 if (asprintf(&lfile, "%s/log.nmbd", get_dyn_LOGFILEBASE()) < 0) 402 exit(1); 403 404 lp_set_logfile(lfile); 405 SAFE_FREE(lfile); 406 #endif 399 reopen_logs(); 400 #endif 401 407 402 return(ret); 408 403 } … … 421 416 dump_all_namelists(); 422 417 reload_nmbd_services( True ); 418 423 419 reopen_logs(); 420 424 421 reload_interfaces(0); 425 422 } … … 845 842 } 846 843 lp_set_logfile(lfile); 844 845 846 847 847 SAFE_FREE(lfile); 848 848 } … … 882 882 } 883 883 884 884 885 reopen_logs(); 886 885 887 886 888 DEBUG(0,("nmbd version %s started.\n", samba_version_string()));
Note:
See TracChangeset
for help on using the changeset viewer.
