Bug 4746 - The option -s won't work in swat
Summary: The option -s won't work in swat
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: SWAT (show other bugs)
Version: 3.0.25
Hardware: Other Windows XP
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
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