Special case for "" in getatr?

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Jul 8 20:48:30 GMT 2006


Hi, Jeremy!

To me it seems that "" is not a special case in w2k3. I can
set the hidden flag via the GUI (sadly not via setatr), and
see it in the getatr. What do you think about

Index: smbd/reply.c
===================================================================
--- smbd/reply.c	(Revision 16881)
+++ smbd/reply.c	(Arbeitskopie)
@@ -896,16 +896,7 @@
 
 	RESOLVE_DFSPATH(fname, conn, inbuf, outbuf);
   
-	/* dos smetimes asks for a stat of "" - it returns a "hidden directory"
-		under WfWg - weird! */
-	if (! (*fname)) {
-		mode = aHIDDEN | aDIR;
-		if (!CAN_WRITE(conn))
-			mode |= aRONLY;
-		size = 0;
-		mtime = 0;
-		ok = True;
-	} else {
+	{
 		unix_convert(fname,conn,0,&bad_path,&sbuf);
 		if (bad_path) {
 			END_PROFILE(SMBgetatr);

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060708/27f036ee/attachment.bin


More information about the samba-technical mailing list