]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-etc_dir.patch
- 4.4.1
[packages/rpm.git] / rpm-etc_dir.patch
index 5b789a446f88f6eee3a6a49a0b2e80b34f05f950..39ca19a9b40a330da6a29074d6188b187c08d05e 100644 (file)
@@ -1,16 +1,16 @@
 diff -Nru rpm-4.1/lib/rpmrc.c rpm-4.1.new/lib/rpmrc.c
 --- rpm-4.1/lib/rpmrc.c        Tue Aug 20 16:53:44 2002
 +++ rpm-4.1.new/lib/rpmrc.c    Tue Mar 11 18:41:48 2003
-@@ -1756,27 +1756,40 @@
+@@ -1756,27 +1756,39 @@
        /* Expand ~/ to $HOME/ */
        fn[0] = '\0';
        if (r[0] == '~' && r[1] == '/') {
-+                      const char * etc_dir = getenv("ETC_DIR");
++                      const char * etc_dir = getenv("HOME_ETC");
            const char * home = getenv("HOME");
 -          if (home == NULL) {
 +                      if (etc_dir) {
 +              if (strlen(etc_dir) > (sizeof(fn) - strlen(r))) {
-+                                      rpmError(RPMERR_RPMRC, _("Cannot read %s, ETC_DIR is too large.\n"),r);
++                                      rpmError(RPMERR_RPMRC, _("Cannot read %s, HOME_ETC is too large.\n"),r);
 +                                      rc = 1;
 +                                      break;
 +              }
@@ -18,7 +18,6 @@ diff -Nru rpm-4.1/lib/rpmrc.c rpm-4.1.new/lib/rpmrc.c
 +                              strncat(fn, "/", sizeof(fn) - strlen(fn));                              
 +                r+=2;
 +              
-+                              if (r[0] == '.') r++;
 +                      } else {
 +              if (home == NULL) {
            /* XXX Only /usr/lib/rpm/rpmrc must exist in default rcfiles list */
@@ -63,7 +62,7 @@ diff -Nru rpm-4.1/lib/rpmrc.c rpm-4.1.new/lib/rpmrc.c
 diff -Nru rpm-4.1/rpmio/macro.c rpm-4.1.new/rpmio/macro.c
 --- rpm-4.1/rpmio/macro.c      Tue Sep 17 14:58:23 2002
 +++ rpm-4.1.new/rpmio/macro.c  Tue Mar 11 18:21:59 2003
-@@ -1614,15 +1614,23 @@
+@@ -1614,15 +1614,22 @@
        buf[0] = '\0';
        if (mfile[0] == '~' && mfile[1] == '/') {
            char *home;
@@ -71,11 +70,10 @@ diff -Nru rpm-4.1/rpmio/macro.c rpm-4.1.new/rpmio/macro.c
 -              mfile += 2;
 -              strncpy(buf, home, sizeof(buf));
 -              strncat(buf, "/", sizeof(buf) - strlen(buf));
-+                      char *etc_dir = getenv("ETC_DIR");
++                      char *etc_dir = getenv("HOME_ETC");
 +
 +                      if (etc_dir) {
 +                              mfile += 2;
-+                              if (mfile[0] == '.') mfile++;
 +                              strncpy(buf, etc_dir, sizeof(buf));
 +                              strncat(buf, "/", sizeof(buf) - strlen(buf));                           
 +                      } else {
@@ -92,3 +90,16 @@ diff -Nru rpm-4.1/rpmio/macro.c rpm-4.1.new/rpmio/macro.c
        fd = Fopen(buf, "r.fpio");
        if (fd == NULL || Ferror(fd)) {
            if (fd) (void) Fclose(fd);
+--- rpm-4.3/po/pl.po.orig      2003-06-10 23:59:11.000000000 +0200
++++ rpm-4.3/po/pl.po   2003-06-11 00:06:16.000000000 +0200
+@@ -2834,6 +2834,10 @@
+ msgid "Please contact rpm-list@redhat.com\n"
+ msgstr "Proszê skontaktowaæ siê z rpm-list@redhat.com\n"
++#: lib/rpmrc.c:1764
++msgid "Cannot read %s, HOME_ETC is too large.\n"
++msgstr "Nie mo¿na odczytaæ %s, HOME_ETC jest zbyt du¿e.\n"
++
+ #: lib/rpmrc.c:1765
+ #, c-format
+ msgid "Cannot expand %s\n"
This page took 0.054604 seconds and 4 git commands to generate.