[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha6-870-gf6821a1
Jeremy Allison
jra at samba.org
Fri Feb 13 23:03:14 GMT 2009
The branch, master has been updated
via f6821a15a05248f185bb6cdd1aeb588504f12d61 (commit)
from 4d83d3a286947754f1306c6493318a4ccdc869a3 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit f6821a15a05248f185bb6cdd1aeb588504f12d61
Author: Jeremy Allison <jra at samba.org>
Date: Fri Feb 13 15:02:32 2009 -0800
Noted by Vericode analysis. Correctly use chroot().
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/process.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 1262d01..0285d00 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2031,7 +2031,11 @@ void smbd_process(void)
if (*lp_rootdir()) {
if (chroot(lp_rootdir()) != 0) {
- DEBUG(0,("Failed changed root to %s\n", lp_rootdir()));
+ DEBUG(0,("Failed to change root to %s\n", lp_rootdir()));
+ exit_server("Failed to chroot()");
+ }
+ if (chdir("/") == -1) {
+ DEBUG(0,("Failed to chdir to / on chroot to %s\n", lp_rootdir()));
exit_server("Failed to chroot()");
}
DEBUG(0,("Changed root to %s\n", lp_rootdir()));
--
Samba Shared Repository
More information about the samba-cvs
mailing list