]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The default password function did not work on some platforms (STR #4750)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 4 Jan 2016 14:34:55 +0000 (14:34 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 4 Jan 2016 14:34:55 +0000 (14:34 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13029 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.1.txt
cups/usersys.c

index 6a0107e378ca3b51c1b83fcabfdf976898e0ec84..51c784e725d0d5b2690df8bc0e1bb31b62b2ac7c 100644 (file)
@@ -3,6 +3,8 @@ CHANGES-2.1.txt
 
 CHANGES IN CUPS V2.1.3
 
+       - The default password function did not work on some platforms
+         (STR #4750)
        - The scheduler should not exit under memory pressure
          (<rdar://problem/23255001>)
        - The EPL2 and ZPL sample drivers did not properly support the CutMedia
index acf82db59f20b4844e90a272b3e9659129b81dd2..9b3c219b7ea1ce1b393f39d16d4a9472e85f225a 100644 (file)
@@ -710,6 +710,8 @@ _cupsGetPassword(const char *prompt)        /* I - Prompt string */
 
   noecho = original;
   noecho.c_lflag &= (tcflag_t)~(ICANON | ECHO | ECHOE | ISIG);
+  noecho.c_cc[VMIN]  = 1;
+  noecho.c_cc[VTIME] = 0;
 
   if (tcsetattr(tty, TCSAFLUSH, &noecho))
   {
@@ -1234,7 +1236,7 @@ cups_set_ssl_options(
 
   for (start = temp; *start; start = end)
   {
-   /* 
+   /*
     * Find end of keyword...
     */