~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to alpine/kblock.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2008-09-23 12:17:56 UTC
  • mfrom: (2.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923121756-6u4x8bwq89qlzt32
Tags: 2.00+dfsg-2
Update to package description: note that Alpine is no longer in
alpha. (Closes: #499640)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#if !defined(lint) && !defined(DOS)
2
 
static char rcsid[] = "$Id: kblock.c 869 2007-12-13 23:41:46Z mikes@u.washington.edu $";
 
2
static char rcsid[] = "$Id: kblock.c 1014 2008-03-26 17:27:45Z hubert@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
6
6
 * ========================================================================
7
 
 * Copyright 2006-2007 University of Washington
 
7
 * Copyright 2006-2008 University of Washington
8
8
 *
9
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
10
 * you may not use this file except in compliance with the License.
122
122
            else
123
123
              snprintf(prompt, sizeof(prompt), _("Enter password to LOCK keyboard : "));
124
124
 
125
 
            flags = OE_PASSWD;
 
125
            flags = F_ON(F_QUELL_ASTERISKS, ps_global) ? OE_PASSWD_NOAST : OE_PASSWD;
126
126
            rc =  optionally_enter(pw, -FOOTER_ROWS(ps), 0, sizeof(pw),
127
127
                                    prompt, NULL, help, &flags);
128
128
 
169
169
        while(1){
170
170
            int rc;
171
171
 
172
 
            flags = OE_PASSWD | OE_DISALLOW_CANCEL;
 
172
            flags = OE_DISALLOW_CANCEL
 
173
                      | (F_ON(F_QUELL_ASTERISKS, ps_global) ? OE_PASSWD_NOAST : OE_PASSWD);
173
174
            rc =  optionally_enter(passwd, -FOOTER_ROWS(ps), 0, sizeof(passwd),
174
175
                                   _("Enter password to UNLOCK keyboard : "),NULL,
175
176
                                   help, &flags);