/[smecontribs]/rpms/smeserver-smbstatus/contribs10/smeserver-smbstatus-1.2-add-in-link-to-wrapper.patch
ViewVC logotype

Contents of /rpms/smeserver-smbstatus/contribs10/smeserver-smbstatus-1.2-add-in-link-to-wrapper.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Oct 14 07:24:49 2020 UTC (3 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-smbstatus-1_2-2, smeserver-smbstatus-1_2-3, HEAD
* Wed Oct 14 2020 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
  by assuming the date is correct and changing the weekday.
  Mon Mar 21 2006 --> Mon Mar 20 2006 or Tue Mar 21 2006 or Mon Mar 27 2006 or ....

1 diff -urN smeserver-smbstatus-1.2.old/createlinks smeserver-smbstatus-1.2/createlinks
2 --- smeserver-smbstatus-1.2.old/createlinks 2006-03-27 20:02:23.000000000 +0100
3 +++ smeserver-smbstatus-1.2/createlinks 2020-10-14 07:21:09.806632184 +0100
4 @@ -14,6 +14,15 @@
5 "/cgi-bin/$function: $!";
6 }
7
8 +sub safe_symlink {
9 + my ($from, $to) = @_;
10 + use File::Basename;
11 + use File::Path;
12 + mkpath(dirname($to));
13 + unlink($to);
14 + symlink($from, $to) or die "Can't create symlink from $from to $to: $!";
15 +}
16 +
17 sub event_link
18 {
19 my ($action, $event, $level) = @_;
20 @@ -49,3 +58,4 @@
21 #event_link("action1", $event, "55");
22 #event_link("action2", $event, "90");
23
24 +safe_symlink("/etc/e-smith/web/functions/wrapper","root/etc/e-smith/web/panels/manager/cgi-bin/smbstatus");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed