samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r11718 - in branches/SAMBA_3_0/source/smbd: .

Subject: svn commit: samba r11718 - in branches/SAMBA_3_0/source/smbd: .
From:
Date: Mon, 14 Nov 2005 06:29:49 +0000 GMT
Author: jra
Date: 2005-11-14 06:29:48 +0000 (Mon, 14 Nov 2005)
New Revision: 11718

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11718

Log:
Filter stored DOS attributes by SAMBA_ATTRIBUTES_MASK (0x7f).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/dosmode.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/dosmode.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/dosmode.c    2005-11-14 06:29:31 UTC (rev 
11717)
+++ branches/SAMBA_3_0/source/smbd/dosmode.c    2005-11-14 06:29:48 UTC (rev 
11718)
@@ -337,6 +337,7 @@
        if (result & aSYSTEM) DEBUG(8, ("s"));
        if (result & aDIR   ) DEBUG(8, ("d"));
        if (result & aARCH  ) DEBUG(8, ("a"));
+       if (result & FILE_ATTRIBUTE_SPARSE ) DEBUG(8, ("[sparse]"));
        
        DEBUG(8,("\n"));
 
@@ -355,6 +356,9 @@
        mode_t unixmode;
        int ret = -1;
 
+       /* We only allow READONLY|HIDDEN|SYSTEM|DIRECTORY|ARCHIVE here. */
+       dosmode &= SAMBA_ATTRIBUTES_MASK;
+
        DEBUG(10,("file_set_dosmode: setting dos mode 0x%x on file %s\n", 
dosmode, fname));
        if (!st || (st && !VALID_STAT(*st))) {
                st = &st1;

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r11718 - in branches/SAMBA_3_0/source/smbd: ., jra <=