[lgogdownloader] 01/01: Handle unattended login attempts. Closes: #798740.
Stephen Kitt
skitt at moszumanska.debian.org
Sat Sep 12 21:34:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch master
in repository lgogdownloader.
commit bc0f10f9c8d799ba39bb40f50537d66737f4ccc8
Author: Stephen Kitt <steve at sk2.org>
Date: Sat Sep 12 23:33:33 2015 +0200
Handle unattended login attempts. Closes: #798740.
---
debian/changelog | 7 ++++++-
debian/patches/series | 1 +
debian/patches/unattended-login.patch | 16 ++++++++++++++++
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 9d1d2c1..e4d02b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+lgogdownloader (2.25-2) UNRELEASED; urgency=medium
+
+ * Handle unattended login attempts. Closes: #798740.
+
+ -- Stephen Kitt <skitt at debian.org> Sat, 12 Sep 2015 23:30:25 +0200
+
lgogdownloader (2.25-1) unstable; urgency=medium
* New upstream release.
@@ -25,7 +31,6 @@ lgogdownloader (2.21-2) unstable; urgency=medium
-- Stephen Kitt <skitt at debian.org> Sun, 10 May 2015 21:45:26 +0200
lgogdownloader (2.21-1) experimental; urgency=medium
-
* New upstream release.
-- Stephen Kitt <skitt at debian.org> Fri, 10 Apr 2015 21:24:56 +0200
diff --git a/debian/patches/series b/debian/patches/series
index cb1e812..8c0f0e4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
honour-flags.patch
manpage-whatis.patch
no-debug-build.patch
+unattended-login.patch
diff --git a/debian/patches/unattended-login.patch b/debian/patches/unattended-login.patch
new file mode 100644
index 0000000..a60fa29
--- /dev/null
+++ b/debian/patches/unattended-login.patch
@@ -0,0 +1,16 @@
+Description: Handle login attempts with no tty
+Author: Stephen Kitt <skitt at debian.org>
+
+--- a/src/downloader.cpp
++++ b/src/downloader.cpp
+@@ -121,6 +121,10 @@
+ {
+ char *pwd;
+ std::string email;
++ if (!isatty(STDIN_FILENO)) {
++ std::cout << "Unable to read email and password" << std::endl;
++ return 0;
++ }
+ std::cout << "Email: ";
+ std::getline(std::cin,email);
+ pwd = getpass("Password: ");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/lgogdownloader.git
More information about the Pkg-games-commits
mailing list