summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-07-18 23:25:19 +0000
committerJeremy Allison <jra@samba.org>2002-07-18 23:25:19 +0000
commit830540068547f6a4b2702b319fcb06b1cc611808 (patch)
tree415c05a8d8ee2b197b6630f40a26631906d44a54
parent4bc4a97e36121fe884acb57957d9f41813d9bb3a (diff)
downloadsamba-830540068547f6a4b2702b319fcb06b1cc611808.tar.gz
samba-830540068547f6a4b2702b319fcb06b1cc611808.tar.bz2
samba-830540068547f6a4b2702b319fcb06b1cc611808.zip
Don't crash on setfileinfo on printer fsp.
Jeremy. (This used to be commit 3a9ceb6b3b915d3153d9cb107f447b13002c0f57)
-rw-r--r--source3/smbd/trans2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 2532096dea..7da1758dec 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2246,7 +2246,8 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
SSVAL(params,0,0);
send_trans2_replies(outbuf, bufsize, params, 2, *ppdata, 0);
return(-1);
- }
+ } else
+ return (UNIXERROR(ERRDOS,ERRbadpath));
} else {
/*
* Original code - this is an open file.