The Samba-Bugzilla – Attachment 6513 Details for
Bug 8188
Mechanism for taking an rsync server down for maintenance
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proof of concept patch
maintenance_mode.patch (text/plain), 577 bytes, created by
Andrew Pollock
on 2011-06-02 04:34:54 UTC
(
hide
)
Description:
Proof of concept patch
Filename:
MIME Type:
Creator:
Andrew Pollock
Created:
2011-06-02 04:34:54 UTC
Size:
577 bytes
patch
obsolete
>--- /tmp/clientserver.c 2011-06-01 21:31:39.000000000 -0700 >+++ clientserver.c 2010-12-23 22:08:34.000000000 -0800 >@@ -922,8 +922,6 @@ > char line[1024]; > char *addr, *host; > int i; >- STRUCT_STAT st; >- int stat_ret; > > io_set_sock_fds(f_in, f_out); > >@@ -950,11 +948,6 @@ > if (!read_line_old(f_in, line, sizeof line)) > return -1; > >- if (do_stat("/etc/rsync_down", &st) == 0) { >- io_printf(f_out, "@ERROR: down for maintenance\n"); >- return -1; >- } >- > if (!*line || strcmp(line, "#list") == 0) { > rprintf(FLOG, "module-list request from %s (%s)\n", > host, addr);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8188
: 6513