~ubuntu-branches/ubuntu/karmic/unzip/karmic

« back to all changes in this revision

Viewing changes to ttyio.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-09-29 17:02:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050929170250-my63eoy88vv1gd7e
Tags: 5.52-3ubuntu2
* SECURITY UPDATE: Fix file permission modification race.
* unix/unix.c: Use fchmod() instead of chmod() to change permissions on the
  files unzip actually created, not the files another attacker might have
  hardlinked to in the meantime.
* CAN-2005-2475

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  Copyright (c) 1990-2001 Info-ZIP.  All rights reserved.
 
2
  Copyright (c) 1990-2004 Info-ZIP.  All rights reserved.
3
3
 
4
4
  See the accompanying file LICENSE, version 2000-Apr-09 or later
5
5
  (the contents of which are also included in zip.h) for terms of use.
58
58
#  endif
59
59
#endif
60
60
 
 
61
#if (defined(__ATHEOS__) || defined(__BEOS__) || defined(UNIX))
 
62
#  ifndef ATH_BEO_UNX
 
63
#    define ATH_BEO_UNX
 
64
#  endif
 
65
#endif
 
66
 
61
67
#if (defined(VM_CMS) || defined(MVS))
62
68
#  ifndef CMS_MVS
63
69
#    define CMS_MVS