Timestamp:
May 27, 2009, 11:39:15 AM (17 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/server.c

    r232 r233  
    14021402
    14031403        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()));
    14061413        }
    14071414
Note: See TracChangeset for help on using the changeset viewer.