OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   13-Sep-2006 12:42:23
  Branch: HEAD                             Handle: 2006091311422200

  Modified files:
    openpkg-src/openpkg     HISTORY openpkg.c openpkg.spec

  Log:
    do not rise privileges for "openpkg rc" when given --eval or --print
    options; this fixes a problem where "openpkg rc --eval" creates a
    temporary dir and file with wrong ownership which cannot be deleted by
    the caller and the file also contains defect content setting
    environment variables (e.g. HOME) to "root" for users listed in
    PREFIX/etc/openpkg/management. The problematic "openpkg rc" call is
    the default replacement for the unaffected "PREFIX/etc/rc --eval" in
    ~m_usr/.bash_login for bootstraps >= 20060826, see dot.bash_login in
    [29790]

  Summary:
    Revision    Changes     Path
    1.372       +1  -0      openpkg-src/openpkg/HISTORY
    1.2         +5  -1      openpkg-src/openpkg/openpkg.c
    1.524       +1  -1      openpkg-src/openpkg/openpkg.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openpkg/HISTORY
  ============================================================================
  $ cvs diff -u -r1.371 -r1.372 HISTORY
  --- openpkg-src/openpkg/HISTORY       9 Sep 2006 22:17:11 -0000       1.371
  +++ openpkg-src/openpkg/HISTORY       13 Sep 2006 10:42:22 -0000      1.372
  @@ -2,6 +2,7 @@
   2006
   ====
   
  +20060913 do not rise privileges for "openpkg rc" when given --eval or 
--print options
   20060910 OpenPKG supports all major Unix platforms - remove explicit and 
unmaintained platform support determination
   20060905 upgrade to OpenSSL 0.9.8c
   20060826 try to allow Perl to build under RHEL4/amd64 (attempt 2)
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/openpkg/openpkg.c
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 openpkg.c
  --- openpkg-src/openpkg/openpkg.c     23 Aug 2006 07:26:19 -0000      1.1
  +++ openpkg-src/openpkg/openpkg.c     13 Sep 2006 10:42:22 -0000      1.2
  @@ -324,7 +324,11 @@
           for (i = 2; i < argc; i++) {
               if (strcmp(argv[i], "--") == 0)
                   break;
  -            else if (   strcmp(argv[i], "-q")       == 0
  +            else if (   strcmp(argv[i], "-p")       == 0
  +                     || strcmp(argv[i], "--print")  == 0
  +                     || strcmp(argv[i], "-e")       == 0
  +                     || strcmp(argv[i], "--eval")   == 0
  +                     || strcmp(argv[i], "-q")       == 0
                        || strcmp(argv[i], "--query")  == 0
                        || strcmp(argv[i], "-c")       == 0
                        || strcmp(argv[i], "--config") == 0) {
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/openpkg/openpkg.spec
  ============================================================================
  $ cvs diff -u -r1.523 -r1.524 openpkg.spec
  --- openpkg-src/openpkg/openpkg.spec  9 Sep 2006 22:17:11 -0000       1.523
  +++ openpkg-src/openpkg/openpkg.spec  13 Sep 2006 10:42:22 -0000      1.524
  @@ -39,7 +39,7 @@
   #   o any cc(1)
   
   #   the package version/release
  -%define       V_openpkg  20060910
  +%define       V_openpkg  20060913
   
   #   the used software versions
   %define       V_rpm      4.2.1
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to