summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-11-02 20:35:20 +0000
committerLuke Leighton <lkcl@samba.org>1997-11-02 20:35:20 +0000
commitb26623bc3a8ff5191763c83564453e77edee836a (patch)
treef42de0e6b960e98492a2b9127796964fb5aee681 /source3/smbd/reply.c
parent73b47876242071af7077df7089aa28d5e9ca911f (diff)
downloadsamba-b26623bc3a8ff5191763c83564453e77edee836a.tar.gz
samba-b26623bc3a8ff5191763c83564453e77edee836a.tar.bz2
samba-b26623bc3a8ff5191763c83564453e77edee836a.zip
Christian Lademann's contribution: new capabilities in smb.conf.
'<' and '|' characters indicate read file and execute command respectively, and feed the output into the parameter (!!!). '<$' and '|$' means run standard_sub_basic() on them. this is going to be fun to document in smb.conf.5.... also, Christian created a new "online" service parameter. services can be taken "off-line".... (This used to be commit 15f44d28916cdc1432bffdbb999c7cf7efd8fb86)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 46425861d4..116542ba34 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1023,7 +1023,9 @@ int reply_search(char *inbuf,char *outbuf)
if ((dirtype&0x1F) == aVOLID)
{
memcpy(p,status,21);
- make_dir_struct(p,"???????????",volume_label(SNUM(cnum)),0,aVOLID,0);
+ mode = aVOLID;
+ if(!CAN_WRITE(cnum)) mode |= aRONLY;
+ make_dir_struct(p,"???????????",volume_label(SNUM(cnum)),0,mode,0);
dptr_fill(p+12,dptr_num);
if (dptr_zero(p+12) && (status_len==0))
numentries = 1;