[BACK]Return to readpass.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/readpass.c between version 1.70 and 1.71

version 1.70, 2022/05/27 04:27:49 version 1.71, 2024/03/30 04:27:44
Line 124 
Line 124 
         const char *askpass_hint = NULL;          const char *askpass_hint = NULL;
         const char *s;          const char *s;
   
         if ((s = getenv("DISPLAY")) != NULL)          if (((s = getenv("DISPLAY")) != NULL && *s != '\0') ||
                 allow_askpass = *s != '\0';              ((s = getenv("WAYLAND_DISPLAY")) != NULL && *s != '\0'))
                   allow_askpass = 1;
         if ((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) != NULL) {          if ((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) != NULL) {
                 if (strcasecmp(s, "force") == 0) {                  if (strcasecmp(s, "force") == 0) {
                         use_askpass = 1;                          use_askpass = 1;
Line 258 
Line 259 
                 debug3_f("cannot notify: no askpass");                  debug3_f("cannot notify: no askpass");
                 goto out;                  goto out;
         }          }
         if (getenv("DISPLAY") == NULL &&          if (getenv("DISPLAY") == NULL && getenv("WAYLAND_DISPLAY") == NULL &&
             ((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) == NULL ||              ((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) == NULL ||
             strcmp(s, "force") != 0)) {              strcmp(s, "force") != 0)) {
                 debug3_f("cannot notify: no display");                  debug3_f("cannot notify: no display");

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71