Changeset 233 for branches/samba-3.2.x/source/smbd/server.c
- Timestamp:
- May 27, 2009, 11:39:15 AM (17 years ago)
- File:
-
- 1 edited
-
branches/samba-3.2.x/source/smbd/server.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/server.c
r232 r233 1402 1402 1403 1403 if (*lp_rootdir()) { 1404 if (sys_chroot(lp_rootdir()) == 0) 1405 DEBUG(2,("Changed root to %s\n", lp_rootdir())); 1404 if (sys_chroot(lp_rootdir()) != 0) { 1405 DEBUG(0,("Failed to change root to %s\n", lp_rootdir())); 1406 exit(1); 1407 } 1408 if (chdir("/") == -1) { 1409 DEBUG(0,("Failed to chdir to / on chroot to %s\n", lp_rootdir())); 1410 exit(1); 1411 } 1412 DEBUG(0,("Changed root to %s\n", lp_rootdir())); 1406 1413 } 1407 1414
Note:
See TracChangeset
for help on using the changeset viewer.
