The Samba-Bugzilla – Attachment 5377 Details for
Bug 7150
Samba returns dfree info for wrong device
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Work-around that works for us
patch (text/plain), 879 bytes, created by
Mathijs Brands
on 2010-02-18 05:04:39 UTC
(
hide
)
Description:
Work-around that works for us
Filename:
MIME Type:
Creator:
Mathijs Brands
Created:
2010-02-18 05:04:39 UTC
Size:
879 bytes
patch
obsolete
>--- samba-3.4.4/source3/lib/sysquotas.c-org 2010-02-18 11:57:17.000000000 +0100 >+++ samba-3.4.4/source3/lib/sysquotas.c 2010-02-18 11:58:41.000000000 +0100 >@@ -50,6 +50,7 @@ > FILE *fp; > struct mntent *mnt; > SMB_DEV_T devno; >+ SMB_INO_T ino; > > /* find the block device file */ > >@@ -64,6 +65,7 @@ > return (-1); > > devno = S.st_dev ; >+ ino = S.st_ino; > > fp = setmntent(MOUNTED,"r"); > if (fp == NULL) { >@@ -74,7 +76,7 @@ > if ( sys_stat(mnt->mnt_dir,&S) == -1 ) > continue ; > >- if (S.st_dev == devno) { >+ if (S.st_dev == devno && S.st_ino = ino) { > (*mntpath) = SMB_STRDUP(mnt->mnt_dir); > (*bdev) = SMB_STRDUP(mnt->mnt_fsname); > (*fs) = SMB_STRDUP(mnt->mnt_type);
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 7150
:
5375
|
5376
| 5377