Skip to content

Commit

Permalink
selftest: Specify /dev/null as the smbd config file
Browse files Browse the repository at this point in the history
smbd will require a smb.conf later.

Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
cryptomilk authored and abartlet committed Apr 28, 2021
1 parent 24c4fcf commit c54d5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/autobuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def make_test(
"--without-ad-dc "
"--bundled-libraries=!tdb"),
("samba-make", "make"),
("samba-check", "./bin/smbd -b | grep CLUSTER_SUPPORT"),
("samba-check", "./bin/smbd --configfile=/dev/null -b | grep CLUSTER_SUPPORT"),
("samba-install", "make install"),
("ctdb-check", "test -e ${PREFIX_DIR}/sbin/ctdbd"),

Expand Down
2 changes: 1 addition & 1 deletion selftest/target/Samba3.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub return_alias_env
sub have_ads($) {
my ($self) = @_;
my $found_ads = 0;
my $smbd_build_options = Samba::bindir_path($self, "smbd") . " -b|";
my $smbd_build_options = Samba::bindir_path($self, "smbd") . " --configfile=/dev/null -b|";
open(IN, $smbd_build_options) or die("Unable to run $smbd_build_options: $!");

while (<IN>) {
Expand Down

0 comments on commit c54d5db

Please sign in to comment.