Bug 4746 - The option -s won't work in swat
The option -s won't work in swat
Status: RESOLVED WONTFIX
Product: Samba 3.0
Classification: Unclassified
Component: SWAT
3.0.25
Other Windows XP
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-26 15:30 UTC by Ying Li
Modified: 2013-09-02 12:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ying Li 2007-06-26 15:30:29 UTC
When using the option -s to specify /path/smb.conf in swat, start smbd/nmbd/winbind button(s) could not work in swat/status page for 3.0.25. 

The following patch works to me to fix the problem.

diff -C3 web/startstop.c web/startstop.c_new
*** web/startstop.c     Tue Jun 26 14:15:22 2007
--- web/startstop.c_new Tue Jun 26 14:15:02 2007
***************
*** 38,44 ****

        become_daemon(True, False);

!       execl(binfile, binfile, "-D", NULL);

        exit(0);
  }
--- 38,44 ----

        become_daemon(True, False);

!       execl(binfile, binfile, "-D", "-s", dyn_CONFIGFILE, NULL);

        exit(0);
  }
***************
*** 58,64 ****

        become_daemon(True, False);

!       execl(binfile, binfile, "-D", NULL);

        exit(0);
  }
--- 58,64 ----

        become_daemon(True, False);

!       execl(binfile, binfile, "-D", "-s", dyn_CONFIGFILE, NULL);

        exit(0);
  }
***************
*** 78,84 ****

        become_daemon(True, False);

!       execl(binfile, binfile, NULL);

        exit(0);
  }
--- 78,84 ----

        become_daemon(True, False);

!       execl(binfile, binfile, "-s", dyn_CONFIGFILE, NULL);

        exit(0);
  }

Thanks.
-Ying
Comment 1 Björn Jacke 2013-09-02 12:53:10 UTC
swat is removed in 4.1