~peter-pearse/ubuntu/natty/zip/prop001

« back to all changes in this revision

Viewing changes to tandem/tanzip.c

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2005-03-23 20:12:12 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050323201212-jzsk2g6kn8v49mwp
Tags: 2.31-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  Copyright (c) 1990-1999 Info-ZIP.  All rights reserved.
 
2
  Copyright (c) 1990-2005 Info-ZIP.  All rights reserved.
3
3
 
4
 
  See the accompanying file LICENSE, version 1999-Oct-05 or later
 
4
  See the accompanying file LICENSE, version 2004-May-22 or later
5
5
  (the contents of which are also included in zip.h) for terms of use.
6
6
  If, for some reason, both of these files are missing, the Info-ZIP license
7
 
  also may be found at:  ftp://ftp.cdrom.com/pub/infozip/license.html
 
7
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
8
8
*/
9
9
/*
10
10
 * routines only used by TANDEM ZIP
491
491
    iztimes *t;             /* return value: access and modification time */
492
492
  {
493
493
    struct stat s;
494
 
    char fname[FILENAME_MAX + 1];
495
494
    nsk_stat_ov *nsk_ov;
496
495
 
497
496
    if (strcmp(f, "-") == 0) {    /* if compressing stdin */
500
499
      }
501
500
    }
502
501
 
503
 
    strcpy(fname, f);
504
 
 
505
 
    if (stat(fname, &s) != 0) return 0;
 
502
    if (stat(f, &s) != 0) return 0;
506
503
 
507
504
    if (a!= NULL) {
508
505
      *a = ((ulg)s.st_mode << 16) | !(s.st_mode & S_IWUSR);