X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fmain.c;h=e36ae2200ba9bfe0e4734663510de39b344b0d9b;hb=83734af7cb3d6293fe6d8303a0bf4d484fe7b41e;hp=f975df8e41922790170008130b7fdae6a7f1b915;hpb=2d731f88767860dbb3c8bd20583e60900461fc94;p=openldap diff --git a/servers/slapd/main.c b/servers/slapd/main.c index f975df8e41..e36ae2200b 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2014 The OpenLDAP Foundation. + * Copyright 1998-2015 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -757,6 +757,11 @@ unhandled_option:; rc = 1; goto stop; } + if ( chdir( "/" ) ) { + perror("chdir"); + rc = 1; + goto stop; + } } #endif