Changeset 312 for branches/samba-3.0/source/smbd/server.c
- Timestamp:
- Aug 5, 2009, 6:34:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/smbd/server.c
r165 r312 1120 1120 1121 1121 if (*lp_rootdir()) { 1122 if (sys_chroot(lp_rootdir()) == 0) 1123 DEBUG(2,("Changed root to %s\n", lp_rootdir())); 1122 if (sys_chroot(lp_rootdir()) != 0) { 1123 DEBUG(0,("Failed to change root to %s\n", lp_rootdir())); 1124 exit(1); 1125 } 1126 if (chdir("/") == -1) { 1127 DEBUG(0,("Failed to chdir to / on chroot to %s\n", lp_rootdir())); 1128 exit(1); 1129 } 1130 DEBUG(0,("Changed root to %s\n", lp_rootdir())); 1124 1131 } 1125 1132
Note:
See TracChangeset
for help on using the changeset viewer.