Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

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

    r206 r221  
    300300                   if they can grab any of the pending locks
    301301                */
    302                 DEBUG(3,(__location__ " Unclean shutdown of pid %u\n", pid));
     302                DEBUG(3,(__location__ " Unclean shutdown of pid %u\n", (unsigned int)pid));
    303303                messaging_send_buf(smbd_messaging_context(), procid_self(),
    304304                                   MSG_SMB_BRL_VALIDATE, NULL, 0);
     
    14391439
    14401440        if (*lp_rootdir()) {
    1441                 if (sys_chroot(lp_rootdir()) == 0)
    1442                         DEBUG(2,("Changed root to %s\n", lp_rootdir()));
     1441                if (sys_chroot(lp_rootdir()) != 0) {
     1442                        DEBUG(0,("Failed to change root to %s\n", lp_rootdir()));
     1443                        exit(1);
     1444                }
     1445                if (chdir("/") == -1) {
     1446                        DEBUG(0,("Failed to chdir to / on chroot to %s\n", lp_rootdir()));
     1447                        exit(1);
     1448                }
     1449                DEBUG(0,("Changed root to %s\n", lp_rootdir()));
    14431450        }
    14441451
Note: See TracChangeset for help on using the changeset viewer.