diff options
author | Volker Lendecke <vl@samba.org> | 2009-12-12 16:58:31 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-12-12 16:57:49 +0100 |
commit | 24a398b5b4b3693129aa8c060912a82fd0383f9f (patch) | |
tree | 9b908e22e0a625653e24e127aef5ebc9cf0fa3d3 | |
parent | 678f2ca14b97c2bf0d5ef8fd0f0313425803c9ea (diff) | |
download | samba-24a398b5b4b3693129aa8c060912a82fd0383f9f.tar.gz samba-24a398b5b4b3693129aa8c060912a82fd0383f9f.tar.bz2 samba-24a398b5b4b3693129aa8c060912a82fd0383f9f.zip |
s3: Fix a very embarrassing build failure
-rw-r--r-- | source3/smbd/quotas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index 8c443b6f60..1ad2b937b1 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -328,7 +328,7 @@ bool disk_quotas(const char *path, uint64_t *bsize, uint64_t *dfree, uint64_t *d } while ((mnt = getmntent(fd)) != NULL) { - if (sys_stat(mnt->mnt_dir, &sbuf, false) { + if (sys_stat(mnt->mnt_dir, &sbuf, false) == -1) { continue; } if (sbuf.st_ex_dev == devno) { @@ -599,7 +599,7 @@ bool disk_quotas(const char *path, euser_id = geteuid(); - if (sys_stat(path, &sbuf, false) { + if (sys_stat(path, &sbuf, false) == -1) { return false; } |