-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smb_fstat doesn't work for directories #79
Comments
A quick look at the code confirms this. |
Also, |
What does fstat give? |
Not sure I understand your question. As mentioned above |
Ah, are you talking about the samba client? |
If however, you are referring to the posix function, the file name or path doesn't seem to be part of the result: struct stat {
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* inode number */
mode_t st_mode; /* protection */
nlink_t st_nlink; /* number of hard links */
uid_t st_uid; /* user ID of owner */
gid_t st_gid; /* group ID of owner */
dev_t st_rdev; /* device ID (if special file) */
off_t st_size; /* total size, in bytes */
blksize_t st_blksize; /* blocksize for file system I/O */
blkcnt_t st_blocks; /* number of 512B blocks allocated */
time_t st_atime; /* time of last access */
time_t st_mtime; /* time of last modification */
time_t st_ctime; /* time of last status change */
}; |
And this is from the samba smbclient:
|
I'd say just the name of the file, then. |
Thanks. BTW, on the command line |
Using bin/dsm sample, I cannot reproduce your issue. smb_fstat is working for a directory and tell me that the file is indeed a directory. |
On a directory, smb_fstat seems to always return NULL.
Current workaround:
Unless of course, I misunderstood the api...
The text was updated successfully, but these errors were encountered: