Skip to content

Instantly share code, notes, and snippets.

@juliedavila
Last active February 28, 2018 16:51
Show Gist options
  • Select an option

  • Save juliedavila/c4e58373429c47b1c6e3354d02323266 to your computer and use it in GitHub Desktop.

Select an option

Save juliedavila/c4e58373429c47b1c6e3354d02323266 to your computer and use it in GitHub Desktop.
Git + SSH on Lambda
--- /usr/bin/get_reference_source 2012-06-07 22:11:52.000000000 +0000
+++ get_reference_source_new 2018-02-28 16:40:47.809651312 +0000
@@ -216,15 +216,6 @@
console.debug("")
-def __prompt_to_continue():
- input = raw_input("Are these parameters correct? Please type 'yes' to "
- "continue: ")
- if input.lower() in ['y', 'yes']:
- return True
- else:
- return False
-
-
def __find_pkg_srpm_uri(console, requested_pkg, instance_id, region,
http_headers, webservice_uri):
request_data_values = {'srpm_name': requested_pkg['sourcerpm'],
@@ -335,7 +326,7 @@
__display_running_parameters(console, options, requested_pkgs, instance_id,
region)
- if __prompt_to_continue():
+ if True:
status = 0
for sourcerpm in requested_pkgs:
http_headers = {'X-GRS-Requested-SRPM': sourcerpm,
--- sshconnect.h 2018-02-27 18:32:03.134061000 +0000
+++ sshconnect.h.new 2018-02-27 18:33:18.350061000 +0000
@@ -73,7 +73,7 @@
#define PRIV_END do { \
int save_errno = errno; \
if (seteuid(original_real_uid) != 0) \
- fatal("PRIV_END: seteuid: %s", \
- strerror(errno)); \
+ /*fatal("PRIV_END: seteuid: %s", \
+ strerror(errno))*/; \
errno = save_errno; \
} while (0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment