~ubuntu-branches/ubuntu/precise/dropbear/precise

« back to all changes in this revision

Viewing changes to svr-session.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2007-03-02 20:48:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070302204818-ozmbou2sbyj7dus5
Tags: 0.49-1
* new upstream release, fixes
  * CVE-2007-1099: dropbear dbclient insufficient warning on hostkey
    mismatch (closes: #412899).
  * dbclient uses static "Password:" prompt instead of using the server's
    prompt (closes: #394996).
* debian/control: Suggests: openssh-client, not ssh (closes: #405686);
  Standards-Version: 3.7.2.2.
* debian/README.Debian: ssh -> openssh-server, openssh-client; remove
  'Replacing OpenSSH "sshd" with Dropbear' part, this is simply done by not
  installing the openssh-server package.
* debian/README.runit: runsvstat -> sv status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
 
182
182
        if (!svr_opts.usingsyslog || havetrace)
183
183
        {
 
184
                struct tm * local_tm = NULL;
184
185
                timesec = time(NULL);
185
 
                if (strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", 
186
 
                                        localtime(&timesec)) == 0) {
187
 
                        datestr[0] = '?'; datestr[1] = '\0';
 
186
                local_tm = localtime(&timesec);
 
187
                if (local_tm == NULL
 
188
                        || strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", 
 
189
                                                localtime(&timesec)) == 0)
 
190
                {
 
191
                        /* upon failure, just print the epoch-seconds time. */
 
192
                        snprintf(datestr, sizeof(datestr), "%d", timesec);
188
193
                }
189
194
                fprintf(stderr, "[%d] %s %s\n", getpid(), datestr, printbuf);
190
195
        }