[Bug 486667] [NEW] stat() fails on cifs shares

demidrol dmitrodem at gmail.com
Sun Nov 22 13:57:23 GMT 2009


Public bug reported:

Binary package hint: samba

I noticed that after upgrade from linux-image-2.6.29 to linux-
image-2.6.32-4-generic some programs that recursively scan directories
(like mpd, xmms2 or gqview) stopped working on samba shares. They simply
doesn't see the mountpoint (e.g. if I mount //server/share on
/mnt/mountpoint and navigate gqview to /mnt it does not see mountpoint
subdirectory). I suspect that this is somehow connected with strange
behavior of stat() system call. The following code

#include <stdio.h>
#include <stdlib.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

int main(int argc, char* argv[]){
    struct stat stat_buf;
    if (argc != 2)
        exit(-1);
    if (stat(argv[1], &stat_buf) != 0){
        perror(NULL);
        exit(-1);
    }
    return 0;
}

fails on samba shares (e.g. if I try to execute ./a.out /mnt/mountpoint
I get "Value too large for defined data type").

System info:

Description:    Ubuntu lucid (development branch)
Release:        10.04

smbfs-3.4.2-1ubuntu1
linux-image-2.6.32.4.4

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

-- 
stat() fails on cifs shares
https://bugs.launchpad.net/bugs/486667
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list