]> Dogcows Code - chaz/tar/commitdiff
Adjust to recent gnulib changes.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jul 2006 05:47:26 +0000 (05:47 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jul 2006 05:47:26 +0000 (05:47 +0000)
* lib/.cvsignore: Remove atexit.c, exit.c, getndelim2.c, getndelim2.h,
pathmax.h, paxconvert.c, paxerror.h, xstrdup.c.
Add inttypes.h, mktime.c, wcwidth.h, xstrndup.c, xstrndup.h.
* src/create.c (start_header): Adjust to API change to mode_adjust.

ChangeLog
lib/.cvsignore
src/create.c

index c2cc8d405de4a28a27dd8d011372659526a4a66d..f24b70d72eb8ee71720e637861b2a80dd5e5e90b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Adjust to recent gnulib changes.
+       * lib/.cvsignore: Remove atexit.c, exit.c, getndelim2.c, getndelim2.h,
+       pathmax.h, paxconvert.c, paxerror.h, xstrdup.c.
+       Add inttypes.h, mktime.c, wcwidth.h, xstrndup.c, xstrndup.h.
+       * src/create.c (start_header): Adjust to API change to mode_adjust.
+
 2006-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * THANKS: Add Ralf Wildenhues
 2006-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * THANKS: Add Ralf Wildenhues
 2006-07-09  Ralf Wildenhues   <Ralf.Wildenhues@gmx.de>
 
        * doc/dumpdir.texi, doc/snapshot.texi, doc/sparse.texi,
 2006-07-09  Ralf Wildenhues   <Ralf.Wildenhues@gmx.de>
 
        * doc/dumpdir.texi, doc/snapshot.texi, doc/sparse.texi,
-        doc/tar.texi: Fix some typos.  
+        doc/tar.texi: Fix some typos.
 
 2006-07-06  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        tar --index-file=FILE --file=- sent the archive to FILE, and
        the listing to stderr. Bug reported by Marcin Gryszkalis
 
 2006-07-06  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        tar --index-file=FILE --file=- sent the archive to FILE, and
        the listing to stderr. Bug reported by Marcin Gryszkalis
-       <mg@fork.pl> 
-       
+       <mg@fork.pl>
+
        * src/buffer.c (_open_archive): Remove stdlis initialization
        * src/tar.c (decode_options): Initialize stdlis
        * tests/indexfile.at: New test case
        * src/buffer.c (_open_archive): Remove stdlis initialization
        * src/tar.c (decode_options): Initialize stdlis
        * tests/indexfile.at: New test case
        * doc/Makefile.am (manual): Fix TEXINPUTS
        * doc/rendition.texi (FIXME): Do not use deprecated @quote-args.
        Do not use @allow-recursion. In its current form the macro is not
        * doc/Makefile.am (manual): Fix TEXINPUTS
        * doc/rendition.texi (FIXME): Do not use deprecated @quote-args.
        Do not use @allow-recursion. In its current form the macro is not
-       recursive. 
-       
+       recursive.
+
 2006-07-03  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 2006-07-03  Sergey Poznyakoff  <gray@gnu.org.ua>
 
-       * bootstrap (update_po): Fix single translation update 
+       * bootstrap (update_po): Fix single translation update
 
 2006-07-03  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
 2006-07-03  Sergey Poznyakoff  <gray@gnu.org.ua>
 
@@ -43,7 +51,7 @@
        * src/tar.c (main): Call closeopen
        * doc/tar.texi: Update --directory description
        * NEWS: Update
        * src/tar.c (main): Call closeopen
        * doc/tar.texi: Update --directory description
        * NEWS: Update
-       
+
 2006-06-26  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * doc/tar.texi: Update. Add cross-references.
 2006-06-26  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * doc/tar.texi: Update. Add cross-references.
@@ -63,7 +71,7 @@
        * src/create.c: Use ST_IS_SPARSE instead of sparse_file_p (update
        paxutils first)
        * src/tar.c: --sparse-version turns on --sparse
        * src/create.c: Use ST_IS_SPARSE instead of sparse_file_p (update
        paxutils first)
        * src/tar.c: --sparse-version turns on --sparse
-       
+
 2006-06-24  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/buffer.c (print_total_stats): Add default case.
 2006-06-24  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/buffer.c (print_total_stats): Add default case.
 
        * tests/spmpv00.at, tests/spmvp01.at, tests/spmvp10.at: New
        testcases.
 
        * tests/spmpv00.at, tests/spmvp01.at, tests/spmvp10.at: New
        testcases.
-       
+
        * tests/Makefile.am: Add spmvp00.at, spmpv01.at, spmpv10.at
        * tests/shortrec.at: Explicitely give `-f -' to the tar invocation
        * tests/sparsemvp.at: Rewritten as an include file.
        * tests/Makefile.am: Add spmvp00.at, spmpv01.at, spmpv10.at
        * tests/shortrec.at: Explicitely give `-f -' to the tar invocation
        * tests/sparsemvp.at: Rewritten as an include file.
        modification times for all archive members during creation.
        (struct tar_args): textual_date_option replaced with a linked list
        textual_date. All references updated.
        modification times for all archive members during creation.
        (struct tar_args): textual_date_option replaced with a linked list
        textual_date. All references updated.
-       (get_date_or_file,report_textual_dates): New functions. 
+       (get_date_or_file,report_textual_dates): New functions.
        * configure.ac: Raise version number to 1.15.92
        * NEWS: Update
        * configure.ac: Raise version number to 1.15.92
        * NEWS: Update
-       
+
 2006-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/common.h (struct name.explicit): Remove
 2006-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/common.h (struct name.explicit): Remove
        * doc/Makefile.am (check-options): New goal
        * doc/tar.texi: Update
        * src/tar.c: Implement --overwrite-dir option (long ago
        * doc/Makefile.am (check-options): New goal
        * doc/tar.texi: Update
        * src/tar.c: Implement --overwrite-dir option (long ago
-       documented). 
+       documented).
 
 2006-06-12  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
 2006-06-12  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        argument means "print dots instead of textual checkpoints".
        (tar_help): New function
        * src/transform.c: Minor fixes.
        argument means "print dots instead of textual checkpoints".
        (tar_help): New function
        * src/transform.c: Minor fixes.
-       
+
 2006-06-08  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * gnulib.modules: Add mkdtemp
 2006-06-08  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * gnulib.modules: Add mkdtemp
        (purge_directory): Re-implement renaming. Introduce
        'X' control code.
        (make_tmp_dir_name): Remove
        (purge_directory): Re-implement renaming. Introduce
        'X' control code.
        (make_tmp_dir_name): Remove
-       
+
        * src/transform.c (set_transform_expr,_transform_name_to_obstack):
        Implement NUMBER flag.
        (add_char_segment): Fix length assignement
 
        * src/transform.c (set_transform_expr,_transform_name_to_obstack):
        Implement NUMBER flag.
        (add_char_segment): Fix length assignement
 
-       * doc/tar.texi: Update 
+       * doc/tar.texi: Update
 
 2006-06-07  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
 2006-06-07  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * tests/multiv04.at: Use genfile --files-from
 
        (Above changes need new genfile.c from paxutils)
        * tests/multiv04.at: Use genfile --files-from
 
        (Above changes need new genfile.c from paxutils)
-       
+
        * TODO: Update
        * NEWS: Update
        * doc/tar.texi: Update
        * TODO: Update
        * NEWS: Update
        * doc/tar.texi: Update
 2006-05-31  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/incremen.c (make_directory): Fix initialization of struct
 2006-05-31  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/incremen.c (make_directory): Fix initialization of struct
-       directory. 
+       directory.
 
 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * tests/append.at, tests/append01.at, tests/extrac01.at,
        tests/options.at, tests/options02.at, tests/same-order01.at,
        tests/same-order02.at: Make AT_SETUP more readable.
        * tests/append.at, tests/append01.at, tests/extrac01.at,
        tests/options.at, tests/options02.at, tests/same-order01.at,
        tests/same-order02.at: Make AT_SETUP more readable.
-       
+
 2006-05-23  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/buffer.c (change_tape_menu): Fix typo (uninitialized
 2006-05-23  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * src/buffer.c (change_tape_menu): Fix typo (uninitialized
        (AT_STAR_PREREQ): Provide md5 sum.
 
        * lib/.cvsignore: Update
        (AT_STAR_PREREQ): Provide md5 sum.
 
        * lib/.cvsignore: Update
-       
+
 2006-05-08  Sergey Poznyakoff  <gray@gnu.org.ua>
 2006-05-08  Sergey Poznyakoff  <gray@gnu.org.ua>
-       
-       * tests/testsuite.at (AT_SORT_PREREQ, AT_UNPRIVILEGED_PREREQ): New 
+
+       * tests/testsuite.at (AT_SORT_PREREQ, AT_UNPRIVILEGED_PREREQ): New
        defines
        defines
-       
+
        * tests/extrac04.at, tests/incr03.at, tests/listed02.at,
        tests/pipe.at, tests/rename01.at, tests/rename02.at,
        tests/rename03.at, tests/same-order01.at: Call
        * tests/extrac04.at, tests/incr03.at, tests/listed02.at,
        tests/pipe.at, tests/rename01.at, tests/rename02.at,
        tests/rename03.at, tests/same-order01.at: Call
        directories. Handle renamed directories more effectively
        (initial implementation, more updates to follow).
        Source tree before this point is tagged
        directories. Handle renamed directories more effectively
        (initial implementation, more updates to follow).
        Source tree before this point is tagged
-       alpha_1_15_90_incremental_1. 
-       
+       alpha_1_15_90_incremental_1.
+
         * NEWS: Update
         * configure.ac: Raise version number to 1.15.91
        * src/common.h (rename_directory,append_incremental_renames): New
         * NEWS: Update
         * configure.ac: Raise version number to 1.15.91
        * src/common.h (rename_directory,append_incremental_renames): New
        (procdir): Change return type to struct directory. Return
        immediately if the directory was already initialized. Discover
        directory renames using directory_meta_table.
        (procdir): Change return type to struct directory. Return
        immediately if the directory was already initialized. Discover
        directory renames using directory_meta_table.
-       (append_incremental_renames): New function.     
+       (append_incremental_renames): New function.
         (read_directory_file, write_directory_file): Use new snapshot file
         format.
        * src/names.c (collect_and_sort_names): Update dir_contents of the
        first non-fake name entry when in listed incremental mode.
         (read_directory_file, write_directory_file): Use new snapshot file
         format.
        * src/names.c (collect_and_sort_names): Update dir_contents of the
        first non-fake name entry when in listed incremental mode.
-       
+
         * tests/incr03.at: New testcase
        * tests/rename01.at: New testcase
        * tests/rename02.at: New testcase
         * tests/incr03.at: New testcase
        * tests/rename01.at: New testcase
        * tests/rename02.at: New testcase
        tests/pipe.at, tests/same-order01.at, tests/same-order02.at,
        tests/sparse01.at, tests/sparse03.at: Always use genfile --file,
        this enables extra error checking.
        tests/pipe.at, tests/same-order01.at, tests/same-order02.at,
        tests/sparse01.at, tests/sparse03.at: Always use genfile --file,
        this enables extra error checking.
-        
+
        * tests/multiv03.at: Attempt to extract a member with truncated
        file name from the archive.
        * tests/multiv03.at: Attempt to extract a member with truncated
        file name from the archive.
-       
+
        * src/buffer.c (_open_archive): Remove unnecessary argument to
        * src/buffer.c (_open_archive): Remove unnecessary argument to
-       check_compressed_archive. 
+       check_compressed_archive.
 
 2006-04-25  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
 2006-04-25  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
        * src/extract.c (extract_dir): Fix toggling existing directory
        permissions (Debian bug #361077). Use parts of patch provided by
 
        * src/extract.c (extract_dir): Fix toggling existing directory
        permissions (Debian bug #361077). Use parts of patch provided by
-       Ian Jackson <iwj@ubuntu.com>. 
+       Ian Jackson <iwj@ubuntu.com>.
        * src/compare.c: Minor changes
        * src/incremen.c (directory.new): New member
        (note_directory,find_directory: Use make_directory to create
        * src/compare.c: Minor changes
        * src/incremen.c (directory.new): New member
        (note_directory,find_directory: Use make_directory to create
        (procdir): Avoid duplicating  directories in the incremental
        backup map.
        * tests/Makefile.am (TESTSUITE_AT): Add extrac06.at
        (procdir): Avoid duplicating  directories in the incremental
        backup map.
        * tests/Makefile.am (TESTSUITE_AT): Add extrac06.at
-       * tests/testsuite.at: Include extrac06.at 
-       
+       * tests/testsuite.at: Include extrac06.at
+
 2006-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (trivial change)
 
        * tests/atlocal.in (PATH): Add build-aux from the source tree,
 2006-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (trivial change)
 
        * tests/atlocal.in (PATH): Add build-aux from the source tree,
index dbda91542ad30bada5293c1f880f03c2e5c732c8..f2ade345eae89775b287febf5ed2ec760c9dc02f 100644 (file)
@@ -26,7 +26,6 @@ argp-pvh.c
 argp-xinl.c
 argp.h
 asnprintf.c
 argp-xinl.c
 argp.h
 asnprintf.c
-atexit.c
 backupfile.c
 backupfile.h
 basename.c
 backupfile.c
 backupfile.h
 basename.c
@@ -45,7 +44,6 @@ error.c
 error.h
 exclude.c
 exclude.h
 error.h
 exclude.c
 exclude.h
-exit.c
 exit.h
 exitfail.c
 exitfail.h
 exit.h
 exitfail.c
 exitfail.h
@@ -70,8 +68,6 @@ getdelim.c
 getdelim.h
 getline.c
 getline.h
 getdelim.h
 getline.c
 getline.h
-getndelim2.c
-getndelim2.h
 getopt.c
 getopt.h
 getopt1.c
 getopt.c
 getopt.h
 getopt1.c
@@ -89,6 +85,7 @@ imaxtostr.c
 intprops.h
 inttostr.c
 inttostr.h
 intprops.h
 inttostr.c
 inttostr.h
+inttypes.h
 lchown.c
 lchown.h
 localcharset.c
 lchown.c
 lchown.h
 localcharset.c
@@ -108,6 +105,7 @@ minmax.h
 mkdirat.c
 mkdtemp.c
 mkdtemp.h
 mkdirat.c
 mkdtemp.c
 mkdtemp.h
+mktime.c
 modechange.c
 modechange.h
 obstack.c
 modechange.c
 modechange.h
 obstack.c
@@ -118,10 +116,7 @@ openat-die.c
 openat-priv.h
 openat.c
 openat.h
 openat-priv.h
 openat.c
 openat.h
-pathmax.h
-paxconvert.c
 paxerror.c
 paxerror.c
-paxerror.h
 paxexit.c
 paxlib.h
 paxnames.c
 paxexit.c
 paxlib.h
 paxnames.c
@@ -210,13 +205,15 @@ version-etc.c
 version-etc.h
 vsnprintf.c
 vsnprintf.h
 version-etc.h
 vsnprintf.c
 vsnprintf.h
+wcwidth.h
 xalloc-die.c
 xalloc.h
 xgetcwd.c
 xgetcwd.h
 xmalloc.c
 xsize.h
 xalloc-die.c
 xalloc.h
 xgetcwd.c
 xgetcwd.h
 xmalloc.c
 xsize.h
-xstrdup.c
+xstrndup.c
+xstrndup.h
 xstrtol.c
 xstrtol.h
 xstrtoul.c
 xstrtol.c
 xstrtol.h
 xstrtoul.c
index 1b84fc860557bd7fee61e0888ccf98381485fdd3..eb528be25626e9db921a1012ed5608821888a51a 100644 (file)
@@ -128,7 +128,7 @@ to_chars_subst (int negative, int gnu_format, uintmax_t value, size_t valsize,
   char const *minval_string;
   char const *maxval_string = STRINGIFY_BIGINT (maxval, maxbuf);
   char const *value_string;
   char const *minval_string;
   char const *maxval_string = STRINGIFY_BIGINT (maxval, maxbuf);
   char const *value_string;
-    
+
   if (gnu_format)
     {
       uintmax_t m = maxval + 1 ? maxval + 1 : maxval / 2 + 1;
   if (gnu_format)
     {
       uintmax_t m = maxval + 1 ? maxval + 1 : maxval / 2 + 1;
@@ -138,7 +138,7 @@ to_chars_subst (int negative, int gnu_format, uintmax_t value, size_t valsize,
     }
   else
     minval_string = "0";
     }
   else
     minval_string = "0";
-  
+
   if (negative)
     {
       char *p = STRINGIFY_BIGINT (- value, valbuf + 1);
   if (negative)
     {
       char *p = STRINGIFY_BIGINT (- value, valbuf + 1);
@@ -147,7 +147,7 @@ to_chars_subst (int negative, int gnu_format, uintmax_t value, size_t valsize,
     }
   else
     value_string = STRINGIFY_BIGINT (value, valbuf);
     }
   else
     value_string = STRINGIFY_BIGINT (value, valbuf);
-         
+
   if (substitute)
     {
       int negsub;
   if (substitute)
     {
       int negsub;
@@ -236,7 +236,7 @@ to_chars (int negative, uintmax_t value, size_t valsize,
     }
   else
     substitute = NULL; /* No substitution for formats, other than GNU */
     }
   else
     substitute = NULL; /* No substitution for formats, other than GNU */
-  
+
   return to_chars_subst (negative, gnu_format, value, valsize, substitute,
                         where, size, type);
 }
   return to_chars_subst (negative, gnu_format, value, valsize, substitute,
                         where, size, type);
 }
@@ -663,7 +663,8 @@ start_header (struct tar_stat_info *st)
   if (mode_option)
     st->stat.st_mode =
       ((st->stat.st_mode & ~MODE_ALL)
   if (mode_option)
     st->stat.st_mode =
       ((st->stat.st_mode & ~MODE_ALL)
-       | mode_adjust (st->stat.st_mode, mode_option, initial_umask));
+       | mode_adjust (st->stat.st_mode, S_ISDIR (st->stat.st_mode) != 0,
+                     initial_umask, mode_option, NULL));
 
   /* Paul Eggert tried the trivial test ($WRITER cf a b; $READER tvf a)
      for a few tars and came up with the following interoperability
 
   /* Paul Eggert tried the trivial test ($WRITER cf a b; $READER tvf a)
      for a few tars and came up with the following interoperability
@@ -1523,7 +1524,7 @@ dump_file0 (struct tar_stat_info *st, const char *p,
            }
 
          file_count_links (st);
            }
 
          file_count_links (st);
-         
+
          ok = status == dump_status_ok;
        }
 
          ok = status == dump_status_ok;
        }
 
This page took 0.039795 seconds and 4 git commands to generate.