stat() fails on cifs shares
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: samba
I noticed that after upgrade from linux-image-2.6.29 to linux-image-
#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){
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.
linux-image-
affects: | samba (Ubuntu) → linux (Ubuntu) |
description: | updated |
tags: | added: kernel-series-unknown |
tags: |
added: kernel-lucid removed: kernel-series-unknown |
Having the same problem in Ubuntu Karmic (kernel 2.6.31-14-generic). Many programs (e.g.: gedit, tex, octave) don't work over cifs shares.
It's a very nasty bug for those of us using cifs shares.