summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-08 14:08:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:58 -0500
commit90149315ea6ad6d165051e51c23f1eb1af8a88e7 (patch)
tree19921db489e9ea4ff040beb64eea62ae75191458 /source3
parent72ecfaf32c2f6db114cff37dd1526a85722935fd (diff)
downloadsamba-90149315ea6ad6d165051e51c23f1eb1af8a88e7.tar.gz
samba-90149315ea6ad6d165051e51c23f1eb1af8a88e7.tar.xz
samba-90149315ea6ad6d165051e51c23f1eb1af8a88e7.zip
r20608: ENOENT->NT_STATUS_OBJECT_NAME_NOT_FOUND is covered in the standard unix error mapping table
(This used to be commit 816c19aaeb812a94fd5669174c9beec60ce1a73f)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 2 insertions, 6 deletions
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);
}