RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm/rpmio/ macro.c

From: Ralf S. Engelschall <rse@rpm5.org>
Date: Mon 04 Feb 2008 - 22:18:50 CET
Message-Id: <20080204211850.66F2A348458@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Ralf S. Engelschall
  Root:   /v/rpm/cvs                       Email:  rse@rpm5.org
  Module: rpm                              Date:   04-Feb-2008 22:18:50
  Branch: HEAD                             Handle: 2008020421185000

  Modified files:
    rpm/rpmio               macro.c

  Log:
    There is no need to filter on a few particular errnos as a
    not-stat(2)-able file can be considered secure independent why it
    isn't stat(2)-able

  Summary:
    Revision    Changes     Path
    2.184       +1  -1      rpm/rpmio/macro.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmio/macro.c
  ============================================================================
  $ cvs diff -u -r2.183 -r2.184 macro.c
  --- rpm/rpmio/macro.c	4 Feb 2008 16:37:17 -0000	2.183
  +++ rpm/rpmio/macro.c	4 Feb 2008 21:18:50 -0000	2.184
  @@ -1838,7 +1838,7 @@
       uid_t uid;
   
       if (stat(filename, &sb) == -1)
  -        return (errno == ENOENT ? 1 : 0);
  +        return 1;
       uid = getuid();
       if (sb.st_uid != uid)
           return 0;
  @@ .
Received on Mon Feb 4 22:18:50 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.