The Samba-Bugzilla – Attachment 1460 Details for
Bug 2794
Samba shares of mounted NTFS file systems display directories as zero byte files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
look (text/plain), 943 bytes, created by
Jeremy Allison
on 2005-09-27 19:41:19 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-09-27 19:41:19 UTC
Size:
943 bytes
patch
obsolete
>Index: lib/system.c >=================================================================== >--- lib/system.c (revision 10556) >+++ lib/system.c (working copy) >@@ -226,6 +226,9 @@ > #endif > /* we always want directories to appear zero size */ > if (ret == 0 && S_ISDIR(sbuf->st_mode)) sbuf->st_size = 0; >+#if defined(BROKEN_STAT_LINK_COUNT) >+ if (ret == 0 && !sbuf->st_nlink) sbuf->st_nlink = 1; >+#endif > return ret; > } > >@@ -243,6 +246,9 @@ > #endif > /* we always want directories to appear zero size */ > if (ret == 0 && S_ISDIR(sbuf->st_mode)) sbuf->st_size = 0; >+#if defined(BROKEN_STAT_LINK_COUNT) >+ if (ret == 0 && !sbuf->st_nlink) sbuf->st_nlink = 1; >+#endif > return ret; > } > >@@ -260,6 +266,9 @@ > #endif > /* we always want directories to appear zero size */ > if (ret == 0 && S_ISDIR(sbuf->st_mode)) sbuf->st_size = 0; >+#if defined(BROKEN_STAT_LINK_COUNT) >+ if (ret == 0 && !sbuf->st_nlink) sbuf->st_nlink = 1; >+#endif > return ret; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2794
: 1460