summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-06-29 16:11:13 +0200
committerMichael Adam <obnox@samba.org>2009-06-29 16:51:53 +0200
commit36501437125fd62020429df719bba4d53e4b35fb (patch)
treed36ab6d6415714fe9b7f159df0bc47da1f3365bd /source3/lib
parente4e855563bcbeb7be54de57d8c1d41d35ddc5e7a (diff)
downloadsamba-36501437125fd62020429df719bba4d53e4b35fb.tar.gz
samba-36501437125fd62020429df719bba4d53e4b35fb.tar.bz2
samba-36501437125fd62020429df719bba4d53e4b35fb.zip
s3:lib/sysquotas: fix usage of SMB_STRUCT_STAT (struct stat_ex).
This fixes the build with quotas / configure time detection of sys_quota interface. Michael
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sysquotas.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c
index 5ee199de22..7eed0cadf9 100644
--- a/source3/lib/sysquotas.c
+++ b/source3/lib/sysquotas.c
@@ -63,7 +63,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char
if ( sys_stat(path, &S) == -1 )
return (-1);
- devno = S.st_dev ;
+ devno = S.st_ex_dev ;
fp = setmntent(MOUNTED,"r");
if (fp == NULL) {
@@ -74,7 +74,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char
if ( sys_stat(mnt->mnt_dir,&S) == -1 )
continue ;
- if (S.st_dev == devno) {
+ if (S.st_ex_dev == devno) {
(*mntpath) = SMB_STRDUP(mnt->mnt_dir);
(*bdev) = SMB_STRDUP(mnt->mnt_fsname);
(*fs) = SMB_STRDUP(mnt->mnt_type);
@@ -118,7 +118,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char
return ret;
}
- if ((ret=devnm(S_IFBLK, S.st_dev, dev_disk, 256, 1))!=0) {
+ if ((ret=devnm(S_IFBLK, S.st_ex_dev, dev_disk, 256, 1))!=0) {
return ret;
}