From 90149315ea6ad6d165051e51c23f1eb1af8a88e7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 8 Jan 2007 14:08:34 +0000 Subject: r20608: ENOENT->NT_STATUS_OBJECT_NAME_NOT_FOUND is covered in the standard unix error mapping table (This used to be commit 816c19aaeb812a94fd5669174c9beec60ce1a73f) --- source3/smbd/trans2.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source3') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 33596f19dac..e85d3c0c5b8 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -2711,12 +2711,8 @@ int set_bad_path_error(int err, BOOL bad_path, char *outbuf, int def_class, uint DEBUG(10,("set_bad_path_error: err = %d bad_path = %d\n", err, (int)bad_path )); - if(err == ENOENT) { - if (bad_path) { - return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND); - } else { - return ERROR_NT(NT_STATUS_OBJECT_NAME_NOT_FOUND); - } + if ((err == ENOENT) && bad_path) { + return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND); } return UNIXERROR(def_class,def_code); } -- cgit