Changeset 855 for trunk/server/source3/nmbd/nmbd.c
- Timestamp:
- Feb 24, 2014, 5:43:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/nmbd/nmbd.c
r854 r855 399 399 /* restore the logfile to log.nmbd always */ 400 400 char *lfile = NULL; 401 if (asprintf(&lfile, "%s/log %d.nmbd", get_dyn_LOGFILEBASE(), getpid()) < 0)401 if (asprintf(&lfile, "%s/log.nmbd.%d", get_dyn_LOGFILEBASE(), getpid()) < 0) 402 402 exit(1); 403 403 … … 841 841 if (!override_logfile) { 842 842 char *lfile = NULL; 843 if (asprintf(&lfile, "%s/log %d.nmbd", get_dyn_LOGFILEBASE(), getpid()) < 0) {843 if (asprintf(&lfile, "%s/log.nmbd", get_dyn_LOGFILEBASE()) < 0) { 844 844 exit(1); 845 845 } … … 894 894 exit(1); 895 895 } 896 897 #ifdef __OS2__ 898 /* restore the logfile to log.nmbd always and also use smb.conf settings*/ 899 char *lfile = NULL; 900 if (asprintf(&lfile, "%s/log.nmbd.%d", get_dyn_LOGFILEBASE(), getpid()) < 0) 901 exit(1); 902 903 lp_set_logfile(lfile); 904 SAFE_FREE(lfile); 905 906 reopen_logs(); 907 #endif 896 908 897 909 if (nmbd_messaging_context() == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.