summaryrefslogtreecommitdiff
path: root/source3/smbd/dfree.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-29 00:23:40 +0000
committerJeremy Allison <jra@samba.org>2000-01-29 00:23:40 +0000
commit21df01ff7d8f520aa5de2b737bd84ba2460d76b8 (patch)
treeff3d9b059293d5e9f7d2f9cfb7366415b54e7536 /source3/smbd/dfree.c
parentebfef23a7d255c68785bff4682117e09957bc23e (diff)
downloadsamba-21df01ff7d8f520aa5de2b737bd84ba2460d76b8.tar.gz
Wrapped popen calls in HAVE_POPEN - needed if we are to add the
env patch. Jeremy. (This used to be commit 94c075faee88538e48d1898f1694500b8a5d4c8b)
Diffstat (limited to 'source3/smbd/dfree.c')
-rw-r--r--source3/smbd/dfree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c
index bd06d3f2351..78380804615 100644
--- a/source3/smbd/dfree.c
+++ b/source3/smbd/dfree.c
@@ -208,6 +208,7 @@ static SMB_BIG_UINT disk_free(char *path, BOOL small_query,
* If external disk calculation specified, use it.
*/
+#ifdef HAVE_POPEN
dfree_command = lp_dfree_command();
if (dfree_command && *dfree_command) {
pstring line;
@@ -249,6 +250,7 @@ static SMB_BIG_UINT disk_free(char *path, BOOL small_query,
fsusage(path, dfree, dsize);
}
} else
+#endif /* HAVE_POPEN */
fsusage(path, dfree, dsize);
if (disk_quotas(path, &bsize_q, &dfree_q, &dsize_q)) {