Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f87faa960e95dc9f639c5f81e94858f42c231031
Ticket: 1852572fffffffffffffffffffffffffffffffff
file writable broken
User & Date: bgriffin on 2007-12-17 18:12:02
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The [file writable] command is broken on Windows XP with samba server mounts.  Since bug 1193497 & 1344540 changes  were put in place, [file writable] appears to always return false for files on samba mounts.  Evidence suggests that it is also restricted to Linux systems as other (sun) samba servers seem to not exhibit this behavior.  Now, it is easy to suggest that the problem lies with the Linux version of samba, however, Tcl is the *only* application that has this problem.  There is *no* evidence that *any* other windows applications have write access problems with these samba servers.
    
    I've been able to reproduce the problem using 8.4.14, and 8.5.0 rc3.  The samba server I'm using is:
    
    $ rpm -q samba                                        
    samba-3.0.10-1.4E.9
    
    Running on:
    
    $ cat /etc/redhat-release 
    Red Hat Enterprise Linux WS release 4 (Nahant Update 4)
    $ uname -a
    Linux modport 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
    
    My samba configuration is:
    
    [global]
            workgroup = mygroup
            server string = Samba Server
            printcap name = /etc/printcap
            load printers = yes
            cups options = raw
            log file = /var/log/samba/%m.log
            max log size = 50
            socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
            dns proxy = no
            idmap uid = 16777216-33554431
            idmap gid = 16777216-33554431
            template shell = /bin/false
            password server = None
            username map = /etc/samba/smbusers
            winbind use default domain = no
    [homes]
            comment = Home Directories
            browseable = no
            writeable = yes
    [printers]
            comment = All Printers
            path = /var/spool/samba
            browseable = no
            printable = yes
    [scratch]
            path = /export/scratch
            writeable = yes
            guest ok = yes
    
    I believe this to be a high priority bug.  I suggest backing out the patch from 1344540 and starting over.  I believe the logic in the patch is flawed in some fundamental way.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "bgriffin"
  10. subsystem changed to: ""
  11. title changed to: "file writable broken"
  12. type changed to: "Bug"