Use the new directory_create_or_exist_strict() function.
[kai/samba.git] / source4 / smbd / service_named_pipe.c
index b000083eecd148c24134cb970822e5ec49366799..6aa984de22a26013491cffa86716de037c3653d9 100644 (file)
@@ -212,7 +212,7 @@ NTSTATUS tstream_setup_named_pipe(TALLOC_CTX *mem_ctx,
                goto fail;
        }
 
-       if (!directory_create_or_exist(dirname, geteuid(), 0700)) {
+       if (!directory_create_or_exist_strict(dirname, geteuid(), 0700)) {
                status = map_nt_error_from_unix_common(errno);
                DEBUG(0,(__location__ ": Failed to create stream pipe directory '%s' - %s\n",
                         dirname, nt_errstr(status)));